summaryrefslogtreecommitdiff
path: root/deps/npm/man/man3/npm-link.3
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2014-09-24 14:41:07 -0700
committerTimothy J Fontaine <tjfontaine@gmail.com>2014-09-24 17:15:10 -0700
commit9fad8958df671c0e894506ef59b4c781c3dfb349 (patch)
tree4db7643b40c4ffd726fb27fb4aa276d420b3bfd8 /deps/npm/man/man3/npm-link.3
parentb26dd4e5ab9192bad72b9dc61fa4ad2d8f215da2 (diff)
downloadnode-new-9fad8958df671c0e894506ef59b4c781c3dfb349.tar.gz
deps: upgrade npm to 2.0.0
Diffstat (limited to 'deps/npm/man/man3/npm-link.3')
-rw-r--r--deps/npm/man/man3/npm-link.344
1 files changed, 16 insertions, 28 deletions
diff --git a/deps/npm/man/man3/npm-link.3 b/deps/npm/man/man3/npm-link.3
index dbecc0edb7..ff5ea0f799 100644
--- a/deps/npm/man/man3/npm-link.3
+++ b/deps/npm/man/man3/npm-link.3
@@ -1,53 +1,41 @@
-.\" Generated with Ronnjs 0.3.8
-.\" http://github.com/kapouer/ronnjs/
-.
.TH "NPM\-LINK" "3" "September 2014" "" ""
-.
.SH "NAME"
-\fBnpm-link\fR \-\- Symlink a package folder
-.
-.SH "SYNOPSIS"
-.
-.nf
+\fBnpm-link\fR \- Symlink a package folder
+.SH SYNOPSIS
+.P
+.RS 2
+.EX
npm\.commands\.link(callback)
npm\.commands\.link(packages, callback)
-.
-.fi
-.
-.SH "DESCRIPTION"
+.EE
+.RE
+.SH DESCRIPTION
+.P
Package linking is a two\-step process\.
-.
.P
Without parameters, link will create a globally\-installed
symbolic link from \fBprefix/package\-name\fR to the current folder\.
-.
.P
With a parameters, link will create a symlink from the local \fBnode_modules\fR
folder to the global symlink\.
-.
.P
When creating tarballs for \fBnpm publish\fR, the linked packages are
"snapshotted" to their current state by resolving the symbolic links\.
-.
.P
This is
handy for installing your own stuff, so that you can work on it and test it
iteratively without having to continually rebuild\.
-.
.P
For example:
-.
-.IP "" 4
-.
-.nf
+.P
+.RS 2
+.EX
npm\.commands\.link(cb) # creates global link from the cwd
# (say redis package)
-npm\.commands\.link(\'redis\', cb) # link\-install the package
-.
-.fi
-.
-.IP "" 0
-.
+npm\.commands\.link('redis', cb) # link\-install the package
+.EE
+.RE
.P
Now, any changes to the redis package will be reflected in
the package in the current working directory
+