]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/doc/api/npm-edit.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / doc / api / npm-edit.md
1 npm-edit(3) -- Edit an installed package
2 ========================================
3
4 ## SYNOPSIS
5
6     npm.commands.edit(package, callback)
7
8 ## DESCRIPTION
9
10 Opens the package folder in the default editor (or whatever you've
11 configured as the npm `editor` config -- see `npm help config`.)
12
13 After it has been edited, the package is rebuilt so as to pick up any
14 changes in compiled packages.
15
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.
19
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.
22
23 Since this command opens an editor in a new process, be careful about where
24 and how this is used.