[ Root System Explorer ]
Location:
Root
/
opt
/
alt
/
alt-nodejs20
/
root
/
usr
/
lib
/
node_modules
/
npm
/
node_modules.bundled
/
pacote
/
lib
/
util
+ Folder
+ File
Upload
Editing: add-git-sha.js
// add a sha to a git remote url spec const addGitSha = (spec, sha) => { if (spec.hosted) { const h = spec.hosted const opt = { noCommittish: true } const base = h.https && h.auth ? h.https(opt) : h.shortcut(opt) return `${base}#${sha}` } else { // don't use new URL for this, because it doesn't handle scp urls return spec.rawSpec.replace(/#.*$/, '') + `#${sha}` } } module.exports = addGitSha
SAVE CHANGES
[ CANCEL ]
Name
Type
Actions
.. (Parent Directory)
📄 add-git-sha.js
FILE
Ren
[EDIT]
DEL
📄 cache-dir.js
FILE
Ren
[EDIT]
DEL
📄 is-package-bin.js
FILE
Ren
[EDIT]
DEL
📄 npm.js
FILE
Ren
[EDIT]
DEL
📄 protected.js
FILE
Ren
[EDIT]
DEL
📄 tar-create-options.js
FILE
Ren
[EDIT]
DEL
📄 trailing-slashes.js
FILE
Ren
[EDIT]
DEL