X7ROOT File Manager
Current Path:
/opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/lib/cache
opt
/
alt
/
alt-nodejs6
/
root
/
usr
/
lib
/
node_modules
/
npm
/
lib
/
cache
/
ðŸ“
..
📄
add-local-tarball.js
(5.68 KB)
📄
add-local.js
(4.18 KB)
📄
add-named.js
(8.99 KB)
📄
add-remote-git.js
(15.59 KB)
📄
add-remote-tarball.js
(4.36 KB)
📄
cached-package-root.js
(387 B)
📄
caching-client.js
(6.52 KB)
📄
get-stat.js
(166 B)
📄
update-index.js
(3.27 KB)
Editing: cached-package-root.js
var assert = require('assert') var resolve = require('path').resolve var npm = require('../npm.js') module.exports = getCacheRoot function getCacheRoot (data) { assert(data, 'must pass package metadata') assert(data.name, 'package metadata must include name') assert(data.version, 'package metadata must include version') return resolve(npm.cache, data.name, data.version) }
Upload File
Create Folder