mirror of https://github.com/jkjoy/sunpeiwen.git
8 lines
202 B
JavaScript
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))
|
||
|
}
|