index.js 215 B

123456789
  1. 'use strict'
  2. var path = require('path')
  3. var uniqueSlug = require('unique-slug')
  4. module.exports = function (filepath, prefix, uniq) {
  5. return path.join(filepath, (prefix ? prefix + '-' : '') + uniqueSlug(uniq))
  6. }