Newer
Older
alert / js / node_modules / unique-filename / index.js
@Réz István Réz István on 18 Nov 2021 215 bytes first commit
'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))
}