1 npm-edit(3) -- Edit an installed package
2 ========================================
6 npm.commands.edit(package, callback)
10 Opens the package folder in the default editor (or whatever you've
11 configured as the npm `editor` config -- see `npm help config`.)
13 After it has been edited, the package is rebuilt so as to pick up any
14 changes in compiled packages.
16 For instance, you can do `npm install connect` to install connect
17 into your package, and then `npm.commands.edit(["connect"], callback)`
18 to make a few changes to your locally installed copy.
20 The first parameter is a string array with a single element, the package
21 to open. The package can optionally have a version number attached.
23 Since this command opens an editor in a new process, be careful about where