| Current Path : /home/emeraadmin/public_html/4d695/ |
| Current File : /home/emeraadmin/public_html/4d695/unique-filename.tar |
package.json 0000644 00000002643 15170146346 0007046 0 ustar 00 {
"_id": "unique-filename@3.0.0",
"_inBundle": true,
"_location": "/npm/unique-filename",
"_phantomChildren": {},
"_requiredBy": [
"/npm/cacache"
],
"author": {
"name": "GitHub Inc."
},
"bugs": {
"url": "https://github.com/iarna/unique-filename/issues"
},
"dependencies": {
"unique-slug": "^4.0.0"
},
"description": "Generate a unique filename for use in temporary directories or caches.",
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.5.1",
"tap": "^16.3.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
},
"files": [
"bin/",
"lib/"
],
"homepage": "https://github.com/iarna/unique-filename",
"keywords": [],
"license": "ISC",
"main": "lib/index.js",
"name": "unique-filename",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/unique-filename.git"
},
"scripts": {
"lint": "eslint \"**/*.js\"",
"lintfix": "npm run lint -- --fix",
"postlint": "template-oss-check",
"posttest": "npm run lint",
"snap": "tap",
"template-oss-apply": "template-oss-apply --force",
"test": "tap"
},
"tap": {
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.5.1"
},
"version": "3.0.0"
}
lib/index.js 0000644 00000000312 15170146346 0006762 0 ustar 00 var path = require('path')
var uniqueSlug = require('unique-slug')
module.exports = function (filepath, prefix, uniq) {
return path.join(filepath, (prefix ? prefix + '-' : '') + uniqueSlug(uniq))
}
LICENSE 0000644 00000001315 15170146346 0005560 0 ustar 00 Copyright npm, Inc
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.