limepot-xyz/mybulma/node_modules/unique-filename/lib/index.js
2023-01-27 19:21:00 -07:00

7 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))
}