NET-Web-API-w-Angular/my-app/node_modules/unique-filename/lib/index.js

8 lines
202 B
JavaScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
var path = require('path')
var uniqueSlug = require('unique-slug')
module.exports = function (filepath, prefix, uniq) {
return path.join(filepath, (prefix ? prefix + '-' : '') + uniqueSlug(uniq))
}