]> 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-link.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-link.md
1 npm-link(3) -- Symlink a package folder
2 =======================================
3
4 ## SYNOPSIS
5
6     npm.commands.link(callback)
7     npm.commands.link(packages, callback)
8
9 ## DESCRIPTION
10
11 Package linking is a two-step process.
12
13 Without parameters, link will create a globally-installed
14 symbolic link from `prefix/package-name` to the current folder.
15
16 With a parameters, link will create a symlink from the local `node_modules`
17 folder to the global symlink.
18
19 When creating tarballs for `npm publish`, the linked packages are
20 "snapshotted" to their current state by resolving the symbolic links.
21
22 This is
23 handy for installing your own stuff, so that you can work on it and test it
24 iteratively without having to continually rebuild.
25
26 For example:
27
28     npm.commands.link(cb)           # creates global link from the cwd
29                                     # (say redis package)
30     npm.commands.link('redis', cb)  # link-install the package
31
32 Now, any changes to the redis package will be reflected in
33 the package in the current working directory