source:
trip-planner-front/node_modules/unique-filename/index.js@
1ad8e64
Last change on this file since 1ad8e64 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 215 bytes |
Line | |
---|---|
1 | 'use strict' |
2 | var path = require('path') |
3 | |
4 | var uniqueSlug = require('unique-slug') |
5 | |
6 | module.exports = function (filepath, prefix, uniq) { |
7 | return path.join(filepath, (prefix ? prefix + '-' : '') + uniqueSlug(uniq)) |
8 | } |
Note:
See TracBrowser
for help on using the repository browser.