index.js 215 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 'use strict' var path = require('path') var uniqueSlug = require('unique-slug') module.exports = function (filepath, prefix, uniq) { return path.join(filepath, (prefix ? prefix + '-' : '') + uniqueSlug(uniq)) }