| Current Path : /home/emeraadmin/www/4d695/ |
| Current File : /home/emeraadmin/www/4d695/unique-slug.tar |
package.json 0000644 00000002626 15170143462 0007043 0 ustar 00 {
"_id": "unique-slug@4.0.0",
"_inBundle": true,
"_location": "/npm/unique-slug",
"_phantomChildren": {},
"_requiredBy": [
"/npm/unique-filename"
],
"author": {
"name": "GitHub Inc."
},
"bugs": {
"url": "https://github.com/npm/unique-slug/issues"
},
"dependencies": {
"imurmurhash": "^0.1.4"
},
"description": "Generate a unique character string suitible for use in files and URLs.",
"devDependencies": {
"@npmcli/eslint-config": "^3.1.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/npm/unique-slug#readme",
"keywords": [],
"license": "ISC",
"main": "lib/index.js",
"name": "unique-slug",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/unique-slug.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": "4.0.0"
}
lib/index.js 0000644 00000000436 15170143462 0006765 0 ustar 00 'use strict'
var MurmurHash3 = require('imurmurhash')
module.exports = function (uniq) {
if (uniq) {
var hash = new MurmurHash3(uniq)
return ('00000000' + hash.result().toString(16)).slice(-8)
} else {
return (Math.random().toString(16) + '0000000').slice(2, 10)
}
}
LICENSE 0000644 00000001336 15170143462 0005557 0 ustar 00 The ISC License
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.