X7ROOT File Manager
Current Path:
/opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/lib/install
opt
/
alt
/
alt-nodejs6
/
root
/
usr
/
lib
/
node_modules
/
npm
/
lib
/
install
/
📁
..
📄
access-error.js
(202 B)
📁
action
📄
actions.js
(4.97 KB)
📄
and-add-parent-to-errors.js
(324 B)
📄
and-finish-tracker.js
(360 B)
📄
and-ignore-errors.js
(204 B)
📄
build-path.js
(243 B)
📄
check-permissions.js
(1.85 KB)
📄
copy-tree.js
(625 B)
📄
decompose-actions.js
(1.54 KB)
📄
deps.js
(23.23 KB)
📄
diff-trees.js
(5.01 KB)
📄
exists.js
(775 B)
📄
filter-invalid-actions.js
(1 KB)
📄
flatten-tree.js
(1023 B)
📄
inflate-bundled.js
(492 B)
📄
inflate-shrinkwrap.js
(3.65 KB)
📄
is-dev-dep.js
(175 B)
📄
is-extraneous.js
(889 B)
📄
is-fs-access-available.js
(763 B)
📄
is-opt-dep.js
(185 B)
📄
is-prod-dep.js
(172 B)
📄
is-registry-specifier.js
(172 B)
📄
mutate-into-logical-tree.js
(4.22 KB)
📄
node.js
(1.43 KB)
📄
read-shrinkwrap.js
(884 B)
📄
realize-shrinkwrap-specifier.js
(661 B)
📄
report-optional-failure.js
(1.02 KB)
📄
save.js
(6.38 KB)
📄
update-package-json.js
(1.52 KB)
📄
validate-args.js
(1.82 KB)
📄
validate-tree.js
(2.55 KB)
📄
writable.js
(1 KB)
Editing: node.js
'use strict' var defaultTemplate = { package: { version: '', dependencies: {}, devDependencies: {}, optionalDependencies: {} }, loaded: false, children: [], requiredBy: [], requires: [], missingDeps: {}, missingDevDeps: {}, phantomChildren: {}, path: null, realpath: null, location: null, userRequired: false, existing: false, isTop: false } function isLink (node) { return node && node.isLink } var create = exports.create = function (node, template) { if (!template) template = defaultTemplate Object.keys(template).forEach(function (key) { if (template[key] != null && typeof template[key] === 'object' && !(template[key] instanceof Array)) { if (!node[key]) node[key] = {} return create(node[key], template[key]) } if (node[key] != null) return node[key] = template[key] }) if (isLink(node.parent)) { node.isLink = true } return node } exports.reset = function (node) { reset(node, {}) } function reset (node, seen) { if (seen[node.path]) return seen[node.path] = true var child = create(node) // FIXME: cleaning up after read-package-json's mess =( if (child.package._id === '@') delete child.package._id child.isTop = false child.requiredBy = [] child.requires = [] child.missingDeps = {} child.missingDevDeps = {} child.phantomChildren = {} child.location = null child.children.forEach(function (child) { reset(child, seen) }) }
Upload File
Create Folder