parcoursup/node_modules/unique-filename/lib/index.js
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01:00

8 lines
202 B
JavaScript

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