1 .\" Generated with Ronnjs 0.3.8
2 .\" http://github.com/kapouer/ronnjs/
4 .TH "NPM\-EDIT" "3" "December 2013" "" ""
7 \fBnpm-edit\fR \-\- Edit an installed package
12 npm\.commands\.edit(package, callback)
17 Opens the package folder in the default editor (or whatever you\'ve
18 configured as the npm \fBeditor\fR config \-\- see \fBnpm help config\fR\|\.)
21 After it has been edited, the package is rebuilt so as to pick up any
22 changes in compiled packages\.
25 For instance, you can do \fBnpm install connect\fR to install connect
26 into your package, and then \fBnpm\.commands\.edit(["connect"], callback)\fR
27 to make a few changes to your locally installed copy\.
30 The first parameter is a string array with a single element, the package
31 to open\. The package can optionally have a version number attached\.
34 Since this command opens an editor in a new process, be careful about where
35 and how this is used\.