Blame view

node_modules/unique-filename/index.js 215 Bytes
aaac7fed   liuqimichale   add
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))
  }