uawdijnntqw1x1x1
IP : 216.73.216.86
Hostname : 6.87.74.97.host.secureserver.net
Kernel : Linux 6.87.74.97.host.secureserver.net 4.18.0-553.83.1.el8_10.x86_64 #1 SMP Mon Nov 10 04:22:44 EST 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
emeraadmin
/
www
/
.
/
node_modules
/
..
/
src
/
..
/
node_modules
/
..
/
.
/
4d695
/
npm-normalize-package-bin.tar
/
/
package.json000064400000003076151701417170007044 0ustar00{ "_id": "npm-normalize-package-bin@3.0.1", "_inBundle": true, "_location": "/npm/npm-normalize-package-bin", "_phantomChildren": {}, "_requiredBy": [ "/npm/@npmcli/installed-package-contents", "/npm/bin-links", "/npm/npm-bundled", "/npm/npm-pick-manifest", "/npm/read-package-json-fast" ], "author": { "name": "GitHub Inc." }, "bugs": { "url": "https://github.com/npm/npm-normalize-package-bin/issues" }, "description": "Turn any flavor of allowable package.json bin into a normalized object", "devDependencies": { "@npmcli/eslint-config": "^4.0.0", "@npmcli/template-oss": "4.14.1", "tap": "^16.3.0" }, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" }, "files": [ "bin/", "lib/" ], "homepage": "https://github.com/npm/npm-normalize-package-bin#readme", "license": "ISC", "main": "lib/index.js", "name": "npm-normalize-package-bin", "repository": { "type": "git", "url": "git+https://github.com/npm/npm-normalize-package-bin.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.14.1", "publish": "true" }, "version": "3.0.1" } lib/index.js000064400000002502151701417170006762 0ustar00// pass in a manifest with a 'bin' field here, and it'll turn it // into a properly santized bin object const { join, basename } = require('path') const normalize = pkg => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === 'string' ? normalizeString(pkg) : Array.isArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === 'object' ? normalizeObject(pkg) : removeBin(pkg) const normalizeString = pkg => { if (!pkg.name) { return removeBin(pkg) } pkg.bin = { [pkg.name]: pkg.bin } return normalizeObject(pkg) } const normalizeArray = pkg => { pkg.bin = pkg.bin.reduce((acc, k) => { acc[basename(k)] = k return acc }, {}) return normalizeObject(pkg) } const removeBin = pkg => { delete pkg.bin return pkg } const normalizeObject = pkg => { const orig = pkg.bin const clean = {} let hasBins = false Object.keys(orig).forEach(binKey => { const base = join('/', basename(binKey.replace(/\\|:/g, '/'))).slice(1) if (typeof orig[binKey] !== 'string' || !base) { return } const binTarget = join('/', orig[binKey].replace(/\\/g, '/')) .replace(/\\/g, '/').slice(1) if (!binTarget) { return } clean[base] = binTarget hasBins = true }) if (hasBins) { pkg.bin = clean } else { delete pkg.bin } return pkg } module.exports = normalize LICENSE000064400000001343151701417170005556 0ustar00The ISC License Copyright (c) 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.
/home/emeraadmin/www/./node_modules/../src/../node_modules/.././4d695/npm-normalize-package-bin.tar