]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/man/man3/npm-edit.3
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / man / man3 / npm-edit.3
1 .TH "NPM\-EDIT" "3" "October 2016" "" ""
2 .SH "NAME"
3 \fBnpm-edit\fR \- Edit an installed package
4 .SH SYNOPSIS
5 .P
6 .RS 2
7 .nf
8 npm\.commands\.edit(package, callback)
9 .fi
10 .RE
11 .SH DESCRIPTION
12 .P
13 Opens the package folder in the default editor (or whatever you've
14 configured as the npm \fBeditor\fP config \-\- see \fBnpm help config\fP\|\.)
15 .P
16 After it has been edited, the package is rebuilt so as to pick up any
17 changes in compiled packages\.
18 .P
19 For instance, you can do \fBnpm install connect\fP to install connect
20 into your package, and then \fBnpm\.commands\.edit(["connect"], callback)\fP
21 to make a few changes to your locally installed copy\.
22 .P
23 The first parameter is a string array with a single element, the package
24 to open\. The package can optionally have a version number attached\.
25 .P
26 Since this command opens an editor in a new process, be careful about where
27 and how this is used\.
28