PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
util
var abbrev = require('abbrev'); var mout = require('mout'); function expandNames(obj, prefix, stack) { prefix = prefix || ''; stack = stack || []; mout.object.forOwn(obj, function(value, name) { name = prefix + name; stack.push(name); if (typeof value === 'object' && !value.line) { expandNames(value, name + ' ', stack); } }); return stack; } module.exports = function(commands) { var abbreviations = abbrev(expandNames(commands)); abbreviations.i = 'install'; abbreviations.rm = 'uninstall'; abbreviations.unlink = 'uninstall'; abbreviations.ls = 'list'; return abbreviations; };
[-] resolve.js
[edit]
[-] copy.js
[edit]
[+]
..
[-] relativeToBaseDir.js
[edit]
[-] validLink.js
[edit]
[-] readJson.js
[edit]
[-] template.js
[edit]
[-] rimraf.js
[edit]
[-] semver.js
[edit]
[-] isPathAbsolute.js
[edit]
[-] cmd.js
[edit]
[-] fs.js
[edit]
[-] createLink.js
[edit]
[-] download.js
[edit]
[-] abbreviations.js
[edit]
[-] extract.js
[edit]
[-] createError.js
[edit]
[-] userAgent.js
[edit]
[-] rootCheck.js
[edit]
[-] cli.js
[edit]
[-] removeIgnores.js
[edit]