mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
Compare commits
117 Commits
v0.8.11-re
...
v0.8.17-re
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c50c33e939 | ||
|
|
ed825f4888 | ||
|
|
aa742ddf80 | ||
|
|
7a2ae4c930 | ||
|
|
ad6769fc92 | ||
|
|
872cb0d7fa | ||
|
|
50e88d0b66 | ||
|
|
acc085e131 | ||
|
|
44ceb5d8f5 | ||
|
|
a7cc53067d | ||
|
|
c2e71dd51d | ||
|
|
54740c8b24 | ||
|
|
6738e68592 | ||
|
|
d30e76e0e8 | ||
|
|
9d0103d22e | ||
|
|
0c867ae618 | ||
|
|
5a19c07c08 | ||
|
|
ba407ce410 | ||
|
|
04adf0e5a1 | ||
|
|
496c0bd936 | ||
|
|
53b826e6ae | ||
|
|
827b2a9b0b | ||
|
|
45cdb0e4c1 | ||
|
|
953673424a | ||
|
|
a18507ce11 | ||
|
|
1c9c6277d5 | ||
|
|
b09f97068e | ||
|
|
d65832ccd0 | ||
|
|
6e97b2cc17 | ||
|
|
65d824b488 | ||
|
|
92e92b0215 | ||
|
|
c79fd0e167 | ||
|
|
276245d26f | ||
|
|
e5649d4b3d | ||
|
|
22965da799 | ||
|
|
4d0fcd515f | ||
|
|
6772308883 | ||
|
|
acad8d9a77 | ||
|
|
c9f2531ae0 | ||
|
|
83161455bd | ||
|
|
122ac4e1f2 | ||
|
|
e773be6f90 | ||
|
|
9f51fd6b84 | ||
|
|
fdf91afb49 | ||
|
|
121ed91331 | ||
|
|
4cb17cb219 | ||
|
|
fb5c7f03a0 | ||
|
|
db008f7cce | ||
|
|
bb867c0fa6 | ||
|
|
7716828166 | ||
|
|
b3bfb6fbb6 | ||
|
|
9b22944b68 | ||
|
|
44dd2c392a | ||
|
|
326bce91d6 | ||
|
|
5f0a10ad21 | ||
|
|
7fe1671727 | ||
|
|
54e88b3d61 | ||
|
|
4379e49818 | ||
|
|
b00527fcf0 | ||
|
|
45a13d9674 | ||
|
|
d130bb060e | ||
|
|
648e38771e | ||
|
|
d269f7e48c | ||
|
|
ff4c974873 | ||
|
|
e1bdde05c7 | ||
|
|
822e13d375 | ||
|
|
c7b2e29e5e | ||
|
|
4b8629db37 | ||
|
|
28e6403a56 | ||
|
|
de0303d3ad | ||
|
|
82a72e9591 | ||
|
|
f34f1e30a6 | ||
|
|
626db18635 | ||
|
|
76a6c4bf2e | ||
|
|
29d12c7342 | ||
|
|
7413df0c1f | ||
|
|
b6b881378a | ||
|
|
49f0f618a9 | ||
|
|
9fa953d3e7 | ||
|
|
844a0058d0 | ||
|
|
de18e29784 | ||
|
|
82df345fbb | ||
|
|
627f0d27e8 | ||
|
|
cca15e8e33 | ||
|
|
1205734e69 | ||
|
|
28b0cc08b8 | ||
|
|
a7b5938715 | ||
|
|
4a23add90f | ||
|
|
b1e78cef09 | ||
|
|
323bbdb0cb | ||
|
|
58db21e6c5 | ||
|
|
b3536ae0a8 | ||
|
|
d411622814 | ||
|
|
38c72d4e29 | ||
|
|
218f08dbde | ||
|
|
99b2368a6c | ||
|
|
6a128e037e | ||
|
|
87518f1e3c | ||
|
|
eec8c2edaf | ||
|
|
be5a8e24c2 | ||
|
|
8c5f269f90 | ||
|
|
59c166cfba | ||
|
|
f826b3269d | ||
|
|
fbb0ee6f24 | ||
|
|
bf0bc3565b | ||
|
|
b0d04ffbd8 | ||
|
|
f624be4093 | ||
|
|
b90c1502e5 | ||
|
|
3b7312d23a | ||
|
|
f1722a280c | ||
|
|
fa912c246c | ||
|
|
d3e818cf8f | ||
|
|
33a5c8a814 | ||
|
|
c08320c957 | ||
|
|
dcc01df968 | ||
|
|
9877b8f414 | ||
|
|
a9429052c2 |
11
AUTHORS
11
AUTHORS
@@ -364,3 +364,14 @@ Pooya Karimian <pkarimian@sencha.com>
|
||||
Frédéric Germain <frederic.germain@gmail.com>
|
||||
Robin Lee <cheeselee@fedoraproject.org>
|
||||
Adam Blackburn <regality@gmail.com>
|
||||
Willi Eggeling <email@wje-online.de>
|
||||
Andrew Paprocki <andrew@ishiboo.com>
|
||||
Max Ogden <max@maxogden.com>
|
||||
Olivier Lalonde <olalonde@gmail.com>
|
||||
Francois Marier <francois@mozilla.com>
|
||||
Trevor Norris <trev.norris@gmail.com>
|
||||
Joshua Erickson <josh@snoj.us>
|
||||
Kai Sasaki Lewuathe <sasaki_kai@lewuathe.sakura.ne.jp>
|
||||
Nicolas Chambrier <naholyr@gmail.com>
|
||||
Tim Bradshaw <tfb@cley.com>
|
||||
Johannes Ewald <mail@johannesewald.de>
|
||||
|
||||
145
CONTRIBUTING.md
Normal file
145
CONTRIBUTING.md
Normal file
@@ -0,0 +1,145 @@
|
||||
# CONTRIBUTING
|
||||
|
||||
The node.js project welcomes new contributors. This document will guide you
|
||||
through the process.
|
||||
|
||||
|
||||
### FORK
|
||||
|
||||
Fork the project [on GitHub](https://github.com/joyent/node) and check out
|
||||
your copy.
|
||||
|
||||
```
|
||||
$ git clone git@github.com:username/node.git
|
||||
$ cd node
|
||||
$ git remote add upstream git://github.com/joyent/node.git
|
||||
```
|
||||
|
||||
Now decide if you want your feature or bug fix to go into the master branch
|
||||
or the stable branch. As a rule of thumb, bug fixes go into the stable branch
|
||||
while new features go into the master branch.
|
||||
|
||||
The stable branch is effectively frozen; patches that change the node.js
|
||||
API/ABI or affect the run-time behavior of applications get rejected.
|
||||
|
||||
The rules for the master branch are less strict; consult the
|
||||
[stability index page][] for details.
|
||||
|
||||
In a nutshell, modules are at varying levels of API stability. Bug fixes are
|
||||
always welcome but API or behavioral changes to modules at stability level 3
|
||||
and up are off-limits.
|
||||
|
||||
Node.js has several bundled dependencies in the deps/ directory that are not
|
||||
part of the project proper. Any changes to files in that directory or its
|
||||
subdirectories should be sent to their respective projects. Do not send
|
||||
that patch to us, we cannot accept it.
|
||||
|
||||
In case of doubt, open an issue in the [issue tracker][], post your question
|
||||
to the [node.js mailing list][] or contact one of the [project maintainers][]
|
||||
on [IRC][].
|
||||
|
||||
Especially do so if you plan to work on something big. Nothing is more
|
||||
frustrating than seeing your hard work go to waste because your vision
|
||||
does not align with that of a project maintainer.
|
||||
|
||||
|
||||
### BRANCH
|
||||
|
||||
Okay, so you have decided on the proper branch. Create a feature branch
|
||||
and start hacking:
|
||||
|
||||
```
|
||||
$ git checkout -b my-feature-branch -t origin/v0.8
|
||||
```
|
||||
|
||||
(Where v0.8 is the latest stable branch as of this writing.)
|
||||
|
||||
|
||||
### COMMIT
|
||||
|
||||
Make sure git knows your name and email address:
|
||||
|
||||
```
|
||||
$ git config --global user.name "J. Random User"
|
||||
$ git config --global user.email "j.random.user@example.com"
|
||||
```
|
||||
|
||||
Writing good commit logs is important. A commit log should describe what
|
||||
changed and why. Follow these guidelines when writing one:
|
||||
|
||||
1. The first line should be 50 characters or less and contain a short
|
||||
description of the change.
|
||||
2. Keep the second line blank.
|
||||
3. Wrap all other lines at 72 columns.
|
||||
|
||||
A good commit log looks like this:
|
||||
|
||||
```
|
||||
Header line: explaining the commit in one line
|
||||
|
||||
Body of commit message is a few lines of text, explaining things
|
||||
in more detail, possibly giving some background about the issue
|
||||
being fixed, etc etc.
|
||||
|
||||
The body of the commit message can be several paragraphs, and
|
||||
please do proper word-wrap and keep columns shorter than about
|
||||
72 characters or so. That way `git log` will show things
|
||||
nicely even when it is indented.
|
||||
```
|
||||
|
||||
The header line should be meaningful; it is what other people see when they
|
||||
run `git shortlog` or `git log --oneline`.
|
||||
|
||||
Have a look at `git log` for inspiration.
|
||||
|
||||
|
||||
### REBASE
|
||||
|
||||
Use `git rebase` (not `git merge`) to sync your work from time to time.
|
||||
|
||||
```
|
||||
$ git fetch upstream
|
||||
$ git rebase upstream/v0.8 # or upstream/master
|
||||
```
|
||||
|
||||
|
||||
### TEST
|
||||
|
||||
Bug fixes and features should come with tests. Add your tests in the
|
||||
test/simple/ directory. Look at other tests to see how they should be
|
||||
structured (license boilerplate, common includes, etc.).
|
||||
|
||||
```
|
||||
$ make jslint test
|
||||
```
|
||||
|
||||
Make sure the linter is happy and that all tests pass. Please, do not submit
|
||||
patches that fail either check.
|
||||
|
||||
|
||||
### PUSH
|
||||
|
||||
```
|
||||
$ git push origin my-feature-branch
|
||||
```
|
||||
|
||||
Go to https://github.com/username/node and select your feature branch. Click
|
||||
the 'Pull Request' button and fill out the form.
|
||||
|
||||
Pull requests are usually reviewed within a few days. If there are comments
|
||||
to address, apply your changes in a separate commit and push that to your
|
||||
feature branch. Post a comment in the pull request afterwards; GitHub does
|
||||
not send out notifications when you add commits.
|
||||
|
||||
|
||||
### CONTRIBUTOR LICENSE AGREEMENT
|
||||
|
||||
Please visit http://nodejs.org/cla.html and sign the Contributor License
|
||||
Agreement. You only need to do that once.
|
||||
|
||||
|
||||
[stability index page]: https://github.com/joyent/node/blob/master/doc/api/documentation.markdown
|
||||
[issue tracker]: https://github.com/joyent/node/issues
|
||||
[node.js mailing list]: http://groups.google.com/group/nodejs
|
||||
[IRC]: http://webchat.freenode.net/?channels=node.js
|
||||
[project maintainers]: https://github.com/joyent/node/wiki/Project-Organization
|
||||
129
ChangeLog
129
ChangeLog
@@ -1,9 +1,104 @@
|
||||
2012.09.27, Version 0.8.11 (Stable)
|
||||
2012.01.09, Version 0.8.17 (Stable)
|
||||
|
||||
* npm: Upgrade to v1.2.0
|
||||
- peerDependencies (Domenic Denicola)
|
||||
- node-gyp v0.8.2 (Nathan Rajlich)
|
||||
- Faster installs from github user/project shorthands (Nathan Zadoks)
|
||||
|
||||
* typed arrays: fix 32 bit size/index overflow (Ben Noordhuis)
|
||||
|
||||
* http: Improve performance of single-packet responses (Ben Noordhuis)
|
||||
|
||||
* install: fix openbsd man page location (Ben Noordhuis)
|
||||
|
||||
* http: bubble up parser errors to ClientRequest (Brian White)
|
||||
|
||||
|
||||
2012.12.13, Version 0.8.16 (Stable), 1c9c6277d5cfcaaac8569c0c8f7daa64292048a9
|
||||
|
||||
* npm: Upgrade to 1.1.69
|
||||
|
||||
* fs: fix WriteStream/ReadStream fd leaks (Ben Noordhuis)
|
||||
|
||||
* crypto: fix leak in GetPeerCertificate (Fedor Indutny)
|
||||
|
||||
* buffer: Don't double-negate numeric buffer arg (Trevor Norris)
|
||||
|
||||
* net: More accurate IP address validation and IPv6 dotted notation. (Joshua Erickson)
|
||||
|
||||
|
||||
2012.11.26, Version 0.8.15 (Stable), fdf91afb494a7a2fff2913d817f589c191a2c88f
|
||||
|
||||
* npm: Upgrade to 1.1.66 (isaacs)
|
||||
|
||||
* linux: use /proc/cpuinfo for CPU frequency (Ben Noordhuis)
|
||||
|
||||
* windows: map WSAESHUTDOWN to UV_EPIPE (Ben Noordhuis)
|
||||
|
||||
* windows: map ERROR_GEN_FAILURE to UV_EIO (Bert Belder)
|
||||
|
||||
* unix: do not set environ unless one is provided (Charlie McConnell)
|
||||
|
||||
* domains: don't crash if domain is set to null (Bert Belder)
|
||||
|
||||
* windows: fix the x64 debug build (Bert Belder)
|
||||
|
||||
* net, tls: fix connect() resource leak (Ben Noordhuis)
|
||||
|
||||
|
||||
2012.10.25, Version 0.8.14 (Stable), b00527fcf05c3d9f/b5d5d790f9472906a59fe218
|
||||
|
||||
* events: Don't clobber pre-existing _events obj in EE ctor (isaacs)
|
||||
|
||||
|
||||
2012.10.25, Version 0.8.13 (Stable), ff4c974873f9a7cc6a5b042eb9b6389bb8dde6d6
|
||||
|
||||
* V8: Upgrade to 3.11.10.25
|
||||
|
||||
* npm: Upgrade to 1.1.65
|
||||
|
||||
* url: parse hostnames that start with - or _ (Ben Noordhuis)
|
||||
|
||||
* repl: Fix Windows 8 terminal issue (Bert Belder)
|
||||
|
||||
* typed arrays: use signed char for signed int8s (Aaron Jacobs)
|
||||
|
||||
* crypto: fix bugs in DiffieHellman (Ben Noordhuis)
|
||||
|
||||
* configure: turn on VFPv3 on ARMv7 (Ben Noordhuis)
|
||||
|
||||
* Re-enable OpenSSL UI for entering passphrases via tty (Ben Noordhuis)
|
||||
|
||||
* repl: ensure each REPL instance gets its own "context" (Nathan Rajlich)
|
||||
|
||||
|
||||
2012.10.12, Version 0.8.12 (Stable), 38c72d4e29574dec5205bcf23c2a85efe65331a4
|
||||
|
||||
* npm: Upgrade to 1.1.63
|
||||
|
||||
* crypto: Reduce stability index to 2-Unstable (isaacs)
|
||||
|
||||
* windows: fix handle leak in uv_fs_utime (Bert Belder)
|
||||
|
||||
* windows: fix application crashed popup in debug version (Bert Belder)
|
||||
|
||||
* buffer: report proper retained size in profiler (Ben Noordhuis)
|
||||
|
||||
* buffer: fix byteLength with UTF-16LE (koichik)
|
||||
|
||||
* repl: make "end of input" JSON.parse() errors throw in the REPL (Nathan Rajlich)
|
||||
|
||||
* repl: make invalid RegExp modifiers throw in the REPL (Nathan Rajlich)
|
||||
|
||||
* http: handle multiple Proxy-Authenticate values (Willi Eggeling)
|
||||
|
||||
|
||||
2012.09.27, Version 0.8.11 (Stable), e1f39468fa580c1e4cb15fac621f87944ee625dc
|
||||
|
||||
* fs: Fix stat() size reporting for large files (Ben Noordhuis)
|
||||
|
||||
|
||||
2012.09.25, Version 0.8.10 (Stable)
|
||||
2012.09.25, Version 0.8.10 (Stable), 0bc273da4fcaa79b209ed755ad249a3e7be626a6
|
||||
|
||||
* npm: Upgrade to 1.1.62
|
||||
|
||||
@@ -765,7 +860,7 @@
|
||||
* Bug fixes
|
||||
|
||||
|
||||
2012.07.10 Version 0.6.20 (maintenance)
|
||||
2012.07.10 Version 0.6.20 (maintenance), 952e513379169ec1b40909d1db056e9bf4294899
|
||||
|
||||
* npm: Upgrade to 1.1.37 (isaacs)
|
||||
|
||||
@@ -1128,7 +1223,7 @@
|
||||
* crypto: don't ignore DH init errors (Ben Noordhuis)
|
||||
|
||||
|
||||
2011.12.14, Version 0.6.6
|
||||
2011.12.14, Version 0.6.6 (stable), 9a059ea69e1f6ebd8899246682d8ca257610b8ab
|
||||
|
||||
* npm update to 1.1.0-beta-4 (Isaac Z. Schlueter)
|
||||
|
||||
@@ -1365,7 +1460,7 @@ koichik, Maciej Małecki, Guglielmo Ferri, isaacs)
|
||||
* Upgrade GYP to r1081
|
||||
|
||||
|
||||
2011.10.10, Version 0.5.9 (unstable)
|
||||
2011.10.10, Version 0.5.9 (unstable), 3bd9b08fb125b606f97a4079b147accfdeebb07d
|
||||
|
||||
* fs.watch interface backed by kqueue, inotify, and ReadDirectoryChangesW
|
||||
(Igor Zinkovsky, Ben Noordhuis)
|
||||
@@ -1449,7 +1544,7 @@ koichik, Maciej Małecki, Guglielmo Ferri, isaacs)
|
||||
* #1719 Drain OpenSSL error queue
|
||||
|
||||
|
||||
2011.09.08, Version 0.5.6 (unstable)
|
||||
2011.09.08, Version 0.5.6 (unstable), b49bec55806574a47403771bce1ee379c2b09ca2
|
||||
|
||||
* #345, #1635, #1648 Documentation improvements (Thomas Shinnick,
|
||||
Abimanyu Raja, AJ ONeal, Koichi Kobayashi, Michael Jackson, Logan Smyth,
|
||||
@@ -1737,7 +1832,7 @@ koichik, Maciej Małecki, Guglielmo Ferri, isaacs)
|
||||
* DTrace probes: support X-Forwarded-For (Dave Pacheco)
|
||||
|
||||
|
||||
2011.09.15, Version 0.4.12 (stable)
|
||||
2011.09.15, Version 0.4.12 (stable), 771ba34ca7b839add2ef96879e1ffc684813cf7c
|
||||
|
||||
* Improve docs
|
||||
|
||||
@@ -1786,7 +1881,7 @@ koichik, Maciej Małecki, Guglielmo Ferri, isaacs)
|
||||
* Doc improvments (koichik, Logan Smyth, Ben Noordhuis, Arnout Kazemier)
|
||||
|
||||
|
||||
2011.07.19, Version 0.4.10 (stable)
|
||||
2011.07.19, Version 0.4.10 (stable), 1b8dd65d6e3b82b6863ef38835cc436c5d30c1d5
|
||||
|
||||
* #394 Fix Buffer drops last null character in UTF-8
|
||||
|
||||
@@ -1813,7 +1908,7 @@ koichik, Maciej Małecki, Guglielmo Ferri, isaacs)
|
||||
* Doc improvements
|
||||
|
||||
|
||||
2011.06.29, Version 0.4.9 (stable)
|
||||
2011.06.29, Version 0.4.9 (stable), de44eafd7854d06cd85006f509b7051e8540589b
|
||||
|
||||
* Improve documentation
|
||||
|
||||
@@ -1887,7 +1982,7 @@ koichik, Maciej Małecki, Guglielmo Ferri, isaacs)
|
||||
* Upgrade V8 to 3.1.8.16.
|
||||
|
||||
|
||||
2011.04.22, Version 0.4.7 (stable)
|
||||
2011.04.22, Version 0.4.7 (stable), c85455a954411b38232e79752d4abb61bb75031b
|
||||
|
||||
* Don't emit error on ECONNRESET from read() #670
|
||||
|
||||
@@ -1905,7 +2000,7 @@ koichik, Maciej Małecki, Guglielmo Ferri, isaacs)
|
||||
* Improve docs.
|
||||
|
||||
|
||||
2011.04.13, Version 0.4.6 (stable)
|
||||
2011.04.13, Version 0.4.6 (stable), 58002d56bc79410c5ff397fc0e1ffec0665db38a
|
||||
|
||||
* Don't error on ENOTCONN from shutdown() #670
|
||||
|
||||
@@ -1935,7 +2030,7 @@ koichik, Maciej Małecki, Guglielmo Ferri, isaacs)
|
||||
* Upgrade v8 to 3.1.8.10
|
||||
|
||||
|
||||
2011.04.01, Version 0.4.5 (stable)
|
||||
2011.04.01, Version 0.4.5 (stable), 787a343b588de26784fef97f953420b53a6e1d73
|
||||
|
||||
* Fix listener leak in stream.pipe() (Mikeal Rogers)
|
||||
|
||||
@@ -2068,7 +2163,7 @@ koichik, Maciej Małecki, Guglielmo Ferri, isaacs)
|
||||
* Upgrade V8 to 3.1.5, libev to 4.4.
|
||||
|
||||
|
||||
2011.02.10, Version 0.4.0 (stable)
|
||||
2011.02.10, Version 0.4.0 (stable), eb155ea6f6a6aa341aa8c731dca8da545c6a4008
|
||||
|
||||
* require() improvements (isaacs)
|
||||
- understand package.json (isaacs)
|
||||
@@ -2101,7 +2196,7 @@ koichik, Maciej Małecki, Guglielmo Ferri, isaacs)
|
||||
* Upgrade V8 to 3.1.2
|
||||
|
||||
|
||||
2011.02.04, Version 0.3.8 (unstable)
|
||||
2011.02.04, Version 0.3.8 (unstable), 9493b7563bff31525b4080df5aeef09747782d5e
|
||||
|
||||
* Add req.abort() for client side requests.
|
||||
|
||||
@@ -2123,7 +2218,7 @@ koichik, Maciej Małecki, Guglielmo Ferri, isaacs)
|
||||
|
||||
* Upgrade V8 to 3.1.1
|
||||
|
||||
2011.01.27, Version 0.3.7 (unstable)
|
||||
2011.01.27, Version 0.3.7 (unstable), d8579c6afdbe868de6dffa8db78bbe4ba2d03e0e
|
||||
|
||||
* Expose agent in http and https client. (Mikeal Rogers)
|
||||
|
||||
@@ -2185,7 +2280,7 @@ koichik, Maciej Małecki, Guglielmo Ferri, isaacs)
|
||||
* Don't stat() on cached modules. (Felix Geisendörfer)
|
||||
|
||||
|
||||
2011.01.08, Version 0.3.4 (unstable)
|
||||
2011.01.08, Version 0.3.4 (unstable), 73f53e12e4a5b9ef7dbb4792bd5f8ad403094441
|
||||
|
||||
* Primordial mingw build (Bert Belder)
|
||||
|
||||
@@ -2403,7 +2498,7 @@ koichik, Maciej Małecki, Guglielmo Ferri, isaacs)
|
||||
* Upgrade V8 to 2.3.8
|
||||
|
||||
|
||||
2010.08.13, Version 0.1.104
|
||||
2010.08.13, Version 0.1.104, b14dd49222687c12f3e8eac597cff4f2674f84e8
|
||||
|
||||
* Various bug fixes (console, querystring, require)
|
||||
|
||||
|
||||
@@ -96,13 +96,12 @@ var server = http.createServer(function (req, res) {
|
||||
'Transfer-Encoding': 'chunked' });
|
||||
// send body in chunks
|
||||
var len = body.length;
|
||||
var step = ~~(len / n_chunks) || len;
|
||||
var step = Math.floor(len / n_chunks) || 1;
|
||||
|
||||
for (var i = 0; i < len; i += step) {
|
||||
res.write(body.slice(i, i + step));
|
||||
for (var i = 0, n = (n_chunks - 1); i < n; ++i) {
|
||||
res.write(body.slice(i * step, i * step + step));
|
||||
}
|
||||
|
||||
res.end();
|
||||
res.end(body.slice((n_chunks - 1) * step));
|
||||
} else {
|
||||
var content_length = body.length.toString();
|
||||
|
||||
|
||||
@@ -77,13 +77,12 @@ var server = http.createServer(function (req, res) {
|
||||
"Transfer-Encoding": "chunked" });
|
||||
// send body in chunks
|
||||
var len = body.length;
|
||||
var step = ~~(len / n_chunks) || len;
|
||||
var step = Math.floor(len / n_chunks) || 1;
|
||||
|
||||
for (var i = 0; i < len; i += step) {
|
||||
res.write(body.slice(i, i + step));
|
||||
for (var i = 0, n = (n_chunks - 1); i < n; ++i) {
|
||||
res.write(body.slice(i * step, i * step + step));
|
||||
}
|
||||
|
||||
res.end();
|
||||
res.end(body.slice((n_chunks - 1) * step));
|
||||
} else {
|
||||
var content_length = body.length.toString();
|
||||
|
||||
|
||||
44
configure
vendored
44
configure
vendored
@@ -176,6 +176,17 @@ parser.add_option("--with-arm-float-abi",
|
||||
help="Specifies which floating-point ABI to use. Valid values are: "
|
||||
"soft, softfp, hard")
|
||||
|
||||
# Using --unsafe-optimizations voids your warranty.
|
||||
parser.add_option("--unsafe-optimizations",
|
||||
action="store_true",
|
||||
dest="unsafe_optimizations",
|
||||
help=optparse.SUPPRESS_HELP)
|
||||
|
||||
parser.add_option("--tag",
|
||||
action="store",
|
||||
dest="tag",
|
||||
help="Custom build tag")
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
|
||||
@@ -322,12 +333,31 @@ def compiler_version():
|
||||
return (version, is_clang)
|
||||
|
||||
|
||||
def configure_arm(o):
|
||||
# V8 on ARM requires that armv7 is set. CPU Model detected by
|
||||
# the presence of __ARM_ARCH_7__ and the like defines in compiler
|
||||
if options.arm_float_abi:
|
||||
hard_float = options.arm_float_abi == 'hard'
|
||||
else:
|
||||
hard_float = arm_hard_float_abi()
|
||||
o['variables']['v8_use_arm_eabi_hardfloat'] = b(hard_float)
|
||||
|
||||
armv7 = is_arch_armv7()
|
||||
if armv7:
|
||||
# CHECKME VFPv3 implies ARMv7+ but is the reverse true as well?
|
||||
o['variables']['arm_fpu'] = 'vfpv3'
|
||||
o['variables']['arm_neon'] = 0
|
||||
o['variables']['armv7'] = int(armv7)
|
||||
|
||||
|
||||
def configure_node(o):
|
||||
# TODO add gdb
|
||||
o['variables']['v8_no_strict_aliasing'] = 1 # work around compiler bugs
|
||||
o['variables']['node_prefix'] = os.path.expanduser(options.prefix or '')
|
||||
o['variables']['node_install_npm'] = b(not options.without_npm)
|
||||
o['variables']['node_install_waf'] = b(not options.without_waf)
|
||||
o['variables']['node_unsafe_optimizations'] = (
|
||||
1 if options.unsafe_optimizations else 0)
|
||||
o['default_configuration'] = 'Debug' if options.debug else 'Release'
|
||||
|
||||
host_arch = host_arch_win() if os.name == 'nt' else host_arch_cc()
|
||||
@@ -335,15 +365,8 @@ def configure_node(o):
|
||||
o['variables']['host_arch'] = host_arch
|
||||
o['variables']['target_arch'] = target_arch
|
||||
|
||||
# V8 on ARM requires that armv7 is set. CPU Model detected by
|
||||
# the presence of __ARM_ARCH_7__ and the like defines in compiler
|
||||
if target_arch == 'arm':
|
||||
if options.arm_float_abi:
|
||||
hard_float = options.arm_float_abi == 'hard'
|
||||
else:
|
||||
hard_float = arm_hard_float_abi()
|
||||
o['variables']['v8_use_arm_eabi_hardfloat'] = b(hard_float)
|
||||
o['variables']['armv7'] = 1 if is_arch_armv7() else 0
|
||||
configure_arm(o)
|
||||
|
||||
cc_version, is_clang = compiler_version()
|
||||
o['variables']['clang'] = 1 if is_clang else 0
|
||||
@@ -376,6 +399,11 @@ def configure_node(o):
|
||||
else:
|
||||
o['variables']['node_use_etw'] = 'false'
|
||||
|
||||
if options.tag:
|
||||
o['variables']['node_tag'] = '-' + options.tag
|
||||
else:
|
||||
o['variables']['node_tag'] = ''
|
||||
|
||||
|
||||
def configure_libz(o):
|
||||
o['variables']['node_shared_zlib'] = b(options.shared_zlib)
|
||||
|
||||
1
deps/npm/AUTHORS
vendored
1
deps/npm/AUTHORS
vendored
@@ -77,3 +77,4 @@ Nicolas Morel <marsup@gmail.com>
|
||||
Mark Dube <markisdee@gmail.com>
|
||||
Maxim Bogushevich <boga1@mail.ru>
|
||||
Justin Beckwith <justbe@microsoft.com>
|
||||
Meaglin <Meaglin.wasabi@gmail.com>
|
||||
|
||||
2
deps/npm/Makefile
vendored
2
deps/npm/Makefile
vendored
@@ -92,7 +92,7 @@ doc/cli/index.md: $(markdowns) scripts/index-build.js scripts/doc-build.sh packa
|
||||
node scripts/index-build.js > $@
|
||||
|
||||
node_modules/.bin/ronn:
|
||||
node cli.js install
|
||||
node cli.js install ronn
|
||||
|
||||
doc: man
|
||||
|
||||
|
||||
10
deps/npm/README.md
vendored
10
deps/npm/README.md
vendored
@@ -60,7 +60,7 @@ for testing, or running stuff without actually installing npm itself.)
|
||||
|
||||
## Fancy Windows Install
|
||||
|
||||
You can download a zip file from <http://npmjs.org/dist/>, and unpack it
|
||||
You can download a zip file from <https://npmjs.org/dist/>, and unpack it
|
||||
in the same folder where node.exe lives.
|
||||
|
||||
If that's not fancy enough for you, then you can fetch the code with
|
||||
@@ -169,13 +169,13 @@ help config` to learn about all the options you can set there.
|
||||
|
||||
## More Docs
|
||||
|
||||
Check out the [docs](http://npmjs.org/doc/),
|
||||
especially the [faq](http://npmjs.org/doc/faq.html).
|
||||
Check out the [docs](https://npmjs.org/doc/),
|
||||
especially the [faq](https://npmjs.org/doc/faq.html).
|
||||
|
||||
You can use the `npm help` command to read any of them.
|
||||
|
||||
If you're a developer, and you want to use npm to publish your program,
|
||||
you should [read this](http://npmjs.org/doc/developers.html)
|
||||
you should [read this](https://npmjs.org/doc/developers.html)
|
||||
|
||||
## Legal Stuff
|
||||
|
||||
@@ -221,7 +221,7 @@ If this concerns you, inspect the source before using packages.
|
||||
When you find issues, please report them:
|
||||
|
||||
* web:
|
||||
<http://github.com/isaacs/npm/issues>
|
||||
<https://github.com/isaacs/npm/issues>
|
||||
* email:
|
||||
<npm-@googlegroups.com>
|
||||
|
||||
|
||||
2
deps/npm/doc/api/deprecate.md
vendored
2
deps/npm/doc/api/deprecate.md
vendored
@@ -25,6 +25,8 @@ The 'args' parameter must have exactly two elements:
|
||||
Note that you must be the package owner to deprecate something. See the
|
||||
`owner` and `adduser` help topics.
|
||||
|
||||
To un-deprecate a package, specify an empty string (`""`) for the `message` argument.
|
||||
|
||||
## SEE ALSO
|
||||
|
||||
* npm-publish(3)
|
||||
|
||||
2
deps/npm/doc/cli/coding-style.md
vendored
2
deps/npm/doc/cli/coding-style.md
vendored
@@ -10,6 +10,8 @@ designed to reduce visual clutter and make bugs more apparent.
|
||||
If you want to contribute to npm (which is very encouraged), you should
|
||||
make your code conform to npm's style.
|
||||
|
||||
Note: this concerns npm's code not the specific packages at npmjs.org
|
||||
|
||||
## Line Length
|
||||
|
||||
Keep lines shorter than 80 characters. It's better for lines to be
|
||||
|
||||
1
deps/npm/doc/cli/config.md
vendored
1
deps/npm/doc/cli/config.md
vendored
@@ -112,7 +112,6 @@ The following shorthands are parsed on the command-line:
|
||||
* `-reg`: `--registry`
|
||||
* `-v`: `--version`
|
||||
* `-f`: `--force`
|
||||
* `-l`: `--long`
|
||||
* `-desc`: `--description`
|
||||
* `-S`: `--save`
|
||||
* `-D`: `--save-dev`
|
||||
|
||||
2
deps/npm/doc/cli/deprecate.md
vendored
2
deps/npm/doc/cli/deprecate.md
vendored
@@ -18,6 +18,8 @@ something like this:
|
||||
Note that you must be the package owner to deprecate something. See the
|
||||
`owner` and `adduser` help topics.
|
||||
|
||||
To un-deprecate a package, specify an empty string (`""`) for the `message` argument.
|
||||
|
||||
## SEE ALSO
|
||||
|
||||
* npm-publish(1)
|
||||
|
||||
13
deps/npm/doc/cli/disputes.md
vendored
13
deps/npm/doc/cli/disputes.md
vendored
@@ -4,8 +4,10 @@ npm-disputes(1) -- Handling Module Name Disputes
|
||||
## SYNOPSIS
|
||||
|
||||
1. Get the author email with `npm owner ls <pkgname>`
|
||||
1. Email the author, CC <i@izs.me>.
|
||||
2. After a few weeks, if there's no resolution, we'll sort it out.
|
||||
2. Email the author, CC <i@izs.me>.
|
||||
3. After a few weeks, if there's no resolution, we'll sort it out.
|
||||
|
||||
Don't squat on package names. Publish code or move out of the way.
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
@@ -40,7 +42,7 @@ Joe's appropriate course of action in each case is the same.
|
||||
|
||||
1. `npm owner ls foo`. This will tell Joe the email address of the
|
||||
owner (Bob).
|
||||
2. Joe emails Bob, explaining the situation **as respecfully as possible**,
|
||||
2. Joe emails Bob, explaining the situation **as respectfully as possible**,
|
||||
and what he would like to do with the module name. He adds
|
||||
isaacs <i@izs.me> to the CC list of the email. Mention in the email
|
||||
that Bob can run `npm owner add joe foo` to add Joe as an owner of
|
||||
@@ -75,6 +77,11 @@ but not limited to:
|
||||
MIT-licensed program, and then removing or changing the copyright and
|
||||
license statement)
|
||||
3. Illegal content.
|
||||
4. "Squatting" on a package name that you *plan* to use, but aren't
|
||||
actually using. Sorry, I don't care how great the name is, or how
|
||||
perfect a fit it is for the thing that someday might happen. If
|
||||
someone wants to use it today, and you're just taking up space with
|
||||
an empty tarball, you're going to be evicted.
|
||||
|
||||
If you see bad behavior like this, please report it right away.
|
||||
|
||||
|
||||
12
deps/npm/doc/cli/faq.md
vendored
12
deps/npm/doc/cli/faq.md
vendored
@@ -3,7 +3,7 @@ npm-faq(1) -- Frequently Asked Questions
|
||||
|
||||
## Where can I find these docs in HTML?
|
||||
|
||||
<http://npmjs.org/doc/>, or run:
|
||||
<https://npmjs.org/doc/>, or run:
|
||||
|
||||
npm config set viewer browser
|
||||
|
||||
@@ -144,7 +144,7 @@ command.)
|
||||
|
||||
In those cases, you can do this:
|
||||
|
||||
curl http://npmjs.org/install.sh | sh
|
||||
curl https://npmjs.org/install.sh | sh
|
||||
|
||||
## What is a `package`?
|
||||
|
||||
@@ -177,9 +177,9 @@ an argument to `git checkout`. The default is `master`.
|
||||
|
||||
You don't. Try one of these:
|
||||
|
||||
* <http://github.com/isaacs/nave>
|
||||
* <http://github.com/visionmedia/n>
|
||||
* <http://github.com/creationix/nvm>
|
||||
* <https://github.com/isaacs/nave>
|
||||
* <https://github.com/visionmedia/n>
|
||||
* <https://github.com/creationix/nvm>
|
||||
|
||||
## How can I use npm for development?
|
||||
|
||||
@@ -245,7 +245,7 @@ There is not sufficient need to impose namespace rules on everyone.
|
||||
Discuss it on the mailing list, or post an issue.
|
||||
|
||||
* <npm-@googlegroups.com>
|
||||
* <http://github.com/isaacs/npm/issues>
|
||||
* <https://github.com/isaacs/npm/issues>
|
||||
|
||||
## Why does npm hate me?
|
||||
|
||||
|
||||
4
deps/npm/doc/cli/json.md
vendored
4
deps/npm/doc/cli/json.md
vendored
@@ -366,8 +366,8 @@ a version in the following fashion.
|
||||
For example, the following are equivalent:
|
||||
|
||||
* `"~1.2.3" = ">=1.2.3 <1.3.0"`
|
||||
* `"~1.2" = ">=1.2.0 <2.0.0"`
|
||||
* `"~1" = ">=1.0.0 <2.0.0"`
|
||||
* `"~1.2" = ">=1.2.0 <1.3.0"`
|
||||
* `"~1" = ">=1.0.0 <1.1.0"`
|
||||
|
||||
### X Version Ranges
|
||||
|
||||
|
||||
4
deps/npm/doc/cli/registry.md
vendored
4
deps/npm/doc/cli/registry.md
vendored
@@ -82,9 +82,7 @@ ask for help on the <npm-@googlegroups.com> mailing list.
|
||||
|
||||
## Is there a website or something to see package docs and such?
|
||||
|
||||
No, but such a thing is planned, and a tiny bit developed.
|
||||
|
||||
Stay tuned!
|
||||
Yes, head over to <https://npmjs.org/>
|
||||
|
||||
## SEE ALSO
|
||||
|
||||
|
||||
53
deps/npm/doc/cli/scripts.md
vendored
53
deps/npm/doc/cli/scripts.md
vendored
@@ -6,6 +6,11 @@ npm-scripts(1) -- How npm handles the "scripts" field
|
||||
npm supports the "scripts" member of the package.json script, for the
|
||||
following scripts:
|
||||
|
||||
* prepublish:
|
||||
Run BEFORE the package is published. (Also run on local `npm
|
||||
install` without any arguments.)
|
||||
* publish, postpublish:
|
||||
Run AFTER the package is published.
|
||||
* preinstall:
|
||||
Run BEFORE the package is installed
|
||||
* install, postinstall:
|
||||
@@ -18,10 +23,6 @@ following scripts:
|
||||
Run BEFORE the package is updated with the update command.
|
||||
* update, postupdate:
|
||||
Run AFTER the package is updated with the update command.
|
||||
* prepublish:
|
||||
Run BEFORE the package is published.
|
||||
* publish, postpublish:
|
||||
Run AFTER the package is published.
|
||||
* pretest, test, posttest:
|
||||
Run by the `npm test` command.
|
||||
* prestop, stop, poststop:
|
||||
@@ -35,6 +36,50 @@ following scripts:
|
||||
Additionally, arbitrary scrips can be run by doing
|
||||
`npm run-script <stage> <pkg>`.
|
||||
|
||||
## NOTE: INSTALL SCRIPTS ARE AN ANTIPATTERN
|
||||
|
||||
**tl;dr** Don't use `install`. Use a `.gyp` file for compilation, and
|
||||
`prepublish` for anything else.
|
||||
|
||||
You should almost never have to explicitly set a `preinstall` or
|
||||
`install` script. If you are doing this, please consider if there is
|
||||
another option.
|
||||
|
||||
The only valid use of `install` or `preinstall` scripts is for
|
||||
compilation which must be done on the target architecture. In early
|
||||
versions of node, this was often done using the `node-waf` scripts, or
|
||||
a standalone `Makefile`, and early versions of npm required that it be
|
||||
explicitly set in package.json. This was not portable, and harder to
|
||||
do properly.
|
||||
|
||||
In the current version of node, the standard way to do this is using a
|
||||
`.gyp` file. If you have a file with a `.gyp` extension in the root
|
||||
of your package, then npm will run the appropriate `node-gyp` commands
|
||||
automatically at install time. This is the only officially supported
|
||||
method for compiling binary addons, and does not require that you add
|
||||
anything to your package.json file.
|
||||
|
||||
If you have to do other things before your package is used, in a way
|
||||
that is not dependent on the operating system or architecture of the
|
||||
target system, then use a `prepublish` script instead. This includes
|
||||
tasks such as:
|
||||
|
||||
* Compile CoffeeScript source code into JavaScript.
|
||||
* Create minified versions of JavaScript source code.
|
||||
* Fetching remote resources that your package will use.
|
||||
|
||||
The advantage of doing these things at `prepublish` time instead of
|
||||
`preinstall` or `install` time is that they can be done once, in a
|
||||
single place, and thus greatly reduce complexity and variability.
|
||||
Additionally, this means that:
|
||||
|
||||
* You can depend on `coffee-script` as a `devDependency`, and thus
|
||||
your users don't need to have it installed.
|
||||
* You don't need to include the minifiers in your package, reducing
|
||||
the size for your users.
|
||||
* You don't need to rely on your users having `curl` or `wget` or
|
||||
other system tools on the target machines.
|
||||
|
||||
## DEFAULT VALUES
|
||||
|
||||
npm will default some script values based on package contents.
|
||||
|
||||
6
deps/npm/doc/cli/semver.md
vendored
6
deps/npm/doc/cli/semver.md
vendored
@@ -11,8 +11,8 @@ As a node module:
|
||||
|
||||
$ npm install semver
|
||||
|
||||
semver.valid('1.2.3') // true
|
||||
semver.valid('a.b.c') // false
|
||||
semver.valid('1.2.3') // '1.2.3'
|
||||
semver.valid('a.b.c') // null
|
||||
semver.clean(' =v1.2.3 ') // '1.2.3'
|
||||
semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true
|
||||
semver.gt('1.2.3', '9.8.7') // false
|
||||
@@ -83,7 +83,7 @@ The following range styles are supported:
|
||||
* `<1.2.3` Less than
|
||||
* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`
|
||||
* `~1.2.3` := `>=1.2.3 <1.3.0`
|
||||
* `~1.2` := `>=1.2.0 <2.0.0`
|
||||
* `~1.2` := `>=1.2.0 <1.3.0`
|
||||
* `~1` := `>=1.0.0 <2.0.0`
|
||||
* `1.2.x` := `>=1.2.0 <1.3.0`
|
||||
* `1.x` := `>=1.0.0 <2.0.0`
|
||||
|
||||
4
deps/npm/doc/cli/view.md
vendored
4
deps/npm/doc/cli/view.md
vendored
@@ -69,7 +69,9 @@ was required by each matching version of yui3:
|
||||
|
||||
If only a single string field for a single version is output, then it
|
||||
will not be colorized or quoted, so as to enable piping the output to
|
||||
another command.
|
||||
another command. If the field is an object, it will be output as a JavaScript object literal.
|
||||
|
||||
If the --json flag is given, the outputted fields will be JSON.
|
||||
|
||||
If the version range matches multiple versions, than each printed value
|
||||
will be prefixed with the version it applies to.
|
||||
|
||||
2
deps/npm/html/api/bin.html
vendored
2
deps/npm/html/api/bin.html
vendored
@@ -19,7 +19,7 @@
|
||||
<p>This function should not be used programmatically. Instead, just refer
|
||||
to the <code>npm.bin</code> member.</p>
|
||||
</div>
|
||||
<p id="footer">bin — npm@1.1.62</p>
|
||||
<p id="footer">bin — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/bugs.html
vendored
2
deps/npm/html/api/bugs.html
vendored
@@ -25,7 +25,7 @@ optional version number.</p>
|
||||
<p>This command will launch a browser, so this command may not be the most
|
||||
friendly for programmatic use.</p>
|
||||
</div>
|
||||
<p id="footer">bugs — npm@1.1.62</p>
|
||||
<p id="footer">bugs — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/commands.html
vendored
2
deps/npm/html/api/commands.html
vendored
@@ -28,7 +28,7 @@ usage, or <code>man 3 npm-<command></code> for programmatic usage.</p>
|
||||
|
||||
<ul><li><a href="../doc/index.html">index(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">commands — npm@1.1.62</p>
|
||||
<p id="footer">commands — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/config.html
vendored
2
deps/npm/html/api/config.html
vendored
@@ -33,7 +33,7 @@ functions instead.</p>
|
||||
|
||||
<ul><li><a href="../api/npm.html">npm(3)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">config — npm@1.1.62</p>
|
||||
<p id="footer">config — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
4
deps/npm/html/api/deprecate.html
vendored
4
deps/npm/html/api/deprecate.html
vendored
@@ -26,11 +26,13 @@ install the package.</p></li></ul>
|
||||
<p>Note that you must be the package owner to deprecate something. See the
|
||||
<code>owner</code> and <code>adduser</code> help topics.</p>
|
||||
|
||||
<p>To un-deprecate a package, specify an empty string (<code>""</code>) for the <code>message</code> argument.</p>
|
||||
|
||||
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
||||
|
||||
<ul><li><a href="../api/publish.html">publish(3)</a></li><li><a href="../api/unpublish.html">unpublish(3)</a></li><li><a href="../doc/registry.html">registry(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">deprecate — npm@1.1.62</p>
|
||||
<p id="footer">deprecate — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/docs.html
vendored
2
deps/npm/html/api/docs.html
vendored
@@ -25,7 +25,7 @@ optional version number.</p>
|
||||
<p>This command will launch a browser, so this command may not be the most
|
||||
friendly for programmatic use.</p>
|
||||
</div>
|
||||
<p id="footer">docs — npm@1.1.62</p>
|
||||
<p id="footer">docs — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/edit.html
vendored
2
deps/npm/html/api/edit.html
vendored
@@ -30,7 +30,7 @@ to open. The package can optionally have a version number attached.</p>
|
||||
<p>Since this command opens an editor in a new process, be careful about where
|
||||
and how this is used.</p>
|
||||
</div>
|
||||
<p id="footer">edit — npm@1.1.62</p>
|
||||
<p id="footer">edit — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/explore.html
vendored
2
deps/npm/html/api/explore.html
vendored
@@ -24,7 +24,7 @@ sure to use <code>npm rebuild <pkg></code> if you make any changes.</p>
|
||||
|
||||
<p>The first element in the 'args' parameter must be a package name. After that is the optional command, which can be any number of strings. All of the strings will be combined into one, space-delimited command.</p>
|
||||
</div>
|
||||
<p id="footer">explore — npm@1.1.62</p>
|
||||
<p id="footer">explore — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/help-search.html
vendored
2
deps/npm/html/api/help-search.html
vendored
@@ -32,7 +32,7 @@ Name of the file that matched</li></ul>
|
||||
|
||||
<p>The silent parameter is not neccessary not used, but it may in the future.</p>
|
||||
</div>
|
||||
<p id="footer">help-search — npm@1.1.62</p>
|
||||
<p id="footer">help-search — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/init.html
vendored
2
deps/npm/html/api/init.html
vendored
@@ -35,7 +35,7 @@ then go ahead and use this programmatically.</p>
|
||||
|
||||
<p><a href="../doc/json.html">json(1)</a></p>
|
||||
</div>
|
||||
<p id="footer">init — npm@1.1.62</p>
|
||||
<p id="footer">init — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/install.html
vendored
2
deps/npm/html/api/install.html
vendored
@@ -25,7 +25,7 @@ the name of a package to be installed.</p>
|
||||
<p>Finally, 'callback' is a function that will be called when all packages have been
|
||||
installed or when an error has been encountered.</p>
|
||||
</div>
|
||||
<p id="footer">install — npm@1.1.62</p>
|
||||
<p id="footer">install — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/link.html
vendored
2
deps/npm/html/api/link.html
vendored
@@ -39,7 +39,7 @@ npm.commands.link('redis', cb) # link-install the package</code></pre>
|
||||
<p>Now, any changes to the redis package will be reflected in
|
||||
the package in the current working directory</p>
|
||||
</div>
|
||||
<p id="footer">link — npm@1.1.62</p>
|
||||
<p id="footer">link — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/load.html
vendored
2
deps/npm/html/api/load.html
vendored
@@ -32,7 +32,7 @@ config object.</p>
|
||||
|
||||
<p>For a list of all the available command-line configs, see <code>npm help config</code></p>
|
||||
</div>
|
||||
<p id="footer">load — npm@1.1.62</p>
|
||||
<p id="footer">load — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/ls.html
vendored
2
deps/npm/html/api/ls.html
vendored
@@ -59,7 +59,7 @@ project.</p>
|
||||
This means that if a submodule a same dependency as a parent module, then the
|
||||
dependency will only be output once.</p>
|
||||
</div>
|
||||
<p id="footer">ls — npm@1.1.62</p>
|
||||
<p id="footer">ls — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
4
deps/npm/html/api/npm.html
vendored
4
deps/npm/html/api/npm.html
vendored
@@ -24,7 +24,7 @@ npm.load(configObject, function (er, npm) {
|
||||
|
||||
<h2 id="VERSION">VERSION</h2>
|
||||
|
||||
<p>1.1.62</p>
|
||||
<p>1.2.0</p>
|
||||
|
||||
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
||||
|
||||
@@ -91,7 +91,7 @@ method names. Use the <code>npm.deref</code> method to find the real name.</p>
|
||||
|
||||
<pre><code>var cmd = npm.deref("unp") // cmd === "unpublish"</code></pre>
|
||||
</div>
|
||||
<p id="footer">npm — npm@1.1.62</p>
|
||||
<p id="footer">npm — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/outdated.html
vendored
2
deps/npm/html/api/outdated.html
vendored
@@ -19,7 +19,7 @@ currently outdated.</p>
|
||||
|
||||
<p>If the 'packages' parameter is left out, npm will check all packages.</p>
|
||||
</div>
|
||||
<p id="footer">outdated — npm@1.1.62</p>
|
||||
<p id="footer">outdated — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/owner.html
vendored
2
deps/npm/html/api/owner.html
vendored
@@ -34,7 +34,7 @@ that is not implemented at this time.</p>
|
||||
|
||||
<ul><li><a href="../api/publish.html">publish(3)</a></li><li><a href="../doc/registry.html">registry(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">owner — npm@1.1.62</p>
|
||||
<p id="footer">owner — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/pack.html
vendored
2
deps/npm/html/api/pack.html
vendored
@@ -25,7 +25,7 @@ overwritten the second time.</p>
|
||||
|
||||
<p>If no arguments are supplied, then npm packs the current package folder.</p>
|
||||
</div>
|
||||
<p id="footer">pack — npm@1.1.62</p>
|
||||
<p id="footer">pack — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/prefix.html
vendored
2
deps/npm/html/api/prefix.html
vendored
@@ -21,7 +21,7 @@
|
||||
|
||||
<p>This function is not useful programmatically</p>
|
||||
</div>
|
||||
<p id="footer">prefix — npm@1.1.62</p>
|
||||
<p id="footer">prefix — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/prune.html
vendored
2
deps/npm/html/api/prune.html
vendored
@@ -23,7 +23,7 @@
|
||||
<p>Extraneous packages are packages that are not listed on the parent
|
||||
package's dependencies list.</p>
|
||||
</div>
|
||||
<p id="footer">prune — npm@1.1.62</p>
|
||||
<p id="footer">prune — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/publish.html
vendored
2
deps/npm/html/api/publish.html
vendored
@@ -32,7 +32,7 @@ the registry. Overwrites when the "force" environment variable is set
|
||||
|
||||
<ul><li><a href="../doc/registry.html">registry(1)</a></li><li><a href="../doc/adduser.html">adduser(1)</a></li><li><a href="../api/owner.html">owner(3)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">publish — npm@1.1.62</p>
|
||||
<p id="footer">publish — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/rebuild.html
vendored
2
deps/npm/html/api/rebuild.html
vendored
@@ -22,7 +22,7 @@ the new binary. If no 'packages' parameter is specify, every package wil
|
||||
|
||||
<p>See <code>npm help build</code></p>
|
||||
</div>
|
||||
<p id="footer">rebuild — npm@1.1.62</p>
|
||||
<p id="footer">rebuild — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/restart.html
vendored
2
deps/npm/html/api/restart.html
vendored
@@ -27,7 +27,7 @@ in the <code>packages</code> parameter.</p>
|
||||
|
||||
<ul><li><a href="../api/start.html">start(3)</a></li><li><a href="../api/stop.html">stop(3)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">restart — npm@1.1.62</p>
|
||||
<p id="footer">restart — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/root.html
vendored
2
deps/npm/html/api/root.html
vendored
@@ -21,7 +21,7 @@
|
||||
|
||||
<p>This function is not useful programmatically.</p>
|
||||
</div>
|
||||
<p id="footer">root — npm@1.1.62</p>
|
||||
<p id="footer">root — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/run-script.html
vendored
2
deps/npm/html/api/run-script.html
vendored
@@ -29,7 +29,7 @@ assumed to be the command to run. All other elements are ignored.</p>
|
||||
|
||||
<ul><li><a href="../doc/scripts.html">scripts(1)</a></li><li><a href="../api/test.html">test(3)</a></li><li><a href="../api/start.html">start(3)</a></li><li><a href="../api/restart.html">restart(3)</a></li><li><a href="../api/stop.html">stop(3)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">run-script — npm@1.1.62</p>
|
||||
<p id="footer">run-script — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/search.html
vendored
2
deps/npm/html/api/search.html
vendored
@@ -32,7 +32,7 @@ excluded term (the "searchexclude" config). The search is case insensi
|
||||
and doesn't try to read your mind (it doesn't do any verb tense matching or the
|
||||
like).</p>
|
||||
</div>
|
||||
<p id="footer">search — npm@1.1.62</p>
|
||||
<p id="footer">search — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/shrinkwrap.html
vendored
2
deps/npm/html/api/shrinkwrap.html
vendored
@@ -26,7 +26,7 @@ but the shrinkwrap file will still be written.</p>
|
||||
<p>Finally, 'callback' is a function that will be called when the shrinkwrap has
|
||||
been saved.</p>
|
||||
</div>
|
||||
<p id="footer">shrinkwrap — npm@1.1.62</p>
|
||||
<p id="footer">shrinkwrap — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/start.html
vendored
2
deps/npm/html/api/start.html
vendored
@@ -19,7 +19,7 @@
|
||||
<p>npm can run tests on multiple packages. Just specify multiple packages
|
||||
in the <code>packages</code> parameter.</p>
|
||||
</div>
|
||||
<p id="footer">start — npm@1.1.62</p>
|
||||
<p id="footer">start — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/stop.html
vendored
2
deps/npm/html/api/stop.html
vendored
@@ -19,7 +19,7 @@
|
||||
<p>npm can run stop on multiple packages. Just specify multiple packages
|
||||
in the <code>packages</code> parameter.</p>
|
||||
</div>
|
||||
<p id="footer">stop — npm@1.1.62</p>
|
||||
<p id="footer">stop — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/submodule.html
vendored
2
deps/npm/html/api/submodule.html
vendored
@@ -33,7 +33,7 @@ dependencies into the submodule folder.</p>
|
||||
|
||||
<ul><li>npm help json</li><li>git help submodule</li></ul>
|
||||
</div>
|
||||
<p id="footer">submodule — npm@1.1.62</p>
|
||||
<p id="footer">submodule — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/tag.html
vendored
2
deps/npm/html/api/tag.html
vendored
@@ -29,7 +29,7 @@ parameter is missing or falsey (empty), the default froom the config will be
|
||||
used. For more information about how to set this config, check
|
||||
<code>man 3 npm-config</code> for programmatic usage or <code>man npm-config</code> for cli usage.</p>
|
||||
</div>
|
||||
<p id="footer">tag — npm@1.1.62</p>
|
||||
<p id="footer">tag — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/test.html
vendored
2
deps/npm/html/api/test.html
vendored
@@ -22,7 +22,7 @@ true.</p>
|
||||
<p>npm can run tests on multiple packages. Just specify multiple packages
|
||||
in the <code>packages</code> parameter.</p>
|
||||
</div>
|
||||
<p id="footer">test — npm@1.1.62</p>
|
||||
<p id="footer">test — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/uninstall.html
vendored
2
deps/npm/html/api/uninstall.html
vendored
@@ -22,7 +22,7 @@ the name of a package to be uninstalled.</p>
|
||||
<p>Finally, 'callback' is a function that will be called when all packages have been
|
||||
uninstalled or when an error has been encountered.</p>
|
||||
</div>
|
||||
<p id="footer">uninstall — npm@1.1.62</p>
|
||||
<p id="footer">uninstall — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/unpublish.html
vendored
2
deps/npm/html/api/unpublish.html
vendored
@@ -26,7 +26,7 @@ is what is meant.</p>
|
||||
<p>If no version is specified, or if all versions are removed then
|
||||
the root package entry is removed from the registry entirely.</p>
|
||||
</div>
|
||||
<p id="footer">unpublish — npm@1.1.62</p>
|
||||
<p id="footer">unpublish — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/update.html
vendored
2
deps/npm/html/api/update.html
vendored
@@ -18,7 +18,7 @@
|
||||
|
||||
<p>The 'packages' argument is an array of packages to update. The 'callback' parameter will be called when done or when an error occurs.</p>
|
||||
</div>
|
||||
<p id="footer">update — npm@1.1.62</p>
|
||||
<p id="footer">update — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/version.html
vendored
2
deps/npm/html/api/version.html
vendored
@@ -24,7 +24,7 @@ fail if the repo is not clean.</p>
|
||||
parameter. The difference, however, is this function will fail if it does
|
||||
not have exactly one element. The only element should be a version number.</p>
|
||||
</div>
|
||||
<p id="footer">version — npm@1.1.62</p>
|
||||
<p id="footer">version — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/view.html
vendored
2
deps/npm/html/api/view.html
vendored
@@ -99,7 +99,7 @@ the field name.</p>
|
||||
|
||||
<p>corresponding to the list of fields selected.</p>
|
||||
</div>
|
||||
<p id="footer">view — npm@1.1.62</p>
|
||||
<p id="footer">view — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/api/whoami.html
vendored
2
deps/npm/html/api/whoami.html
vendored
@@ -21,7 +21,7 @@
|
||||
|
||||
<p>This function is not useful programmatically</p>
|
||||
</div>
|
||||
<p id="footer">whoami — npm@1.1.62</p>
|
||||
<p id="footer">whoami — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
12
deps/npm/html/doc/README.html
vendored
12
deps/npm/html/doc/README.html
vendored
@@ -67,7 +67,7 @@ for testing, or running stuff without actually installing npm itself.)</p>
|
||||
|
||||
<h2 id="Fancy-Windows-Install">Fancy Windows Install</h2>
|
||||
|
||||
<p>You can download a zip file from <a href="http://npmjs.org/dist/">http://npmjs.org/dist/</a>, and unpack it
|
||||
<p>You can download a zip file from <a href="https://npmjs.org/dist/">https://npmjs.org/dist/</a>, and unpack it
|
||||
in the same folder where node.exe lives.</p>
|
||||
|
||||
<p>If that's not fancy enough for you, then you can fetch the code with
|
||||
@@ -175,13 +175,13 @@ help config</code> to learn about all the options you can set there.</p>
|
||||
|
||||
<h2 id="More-Docs">More Docs</h2>
|
||||
|
||||
<p>Check out the <a href="http://npmjs.org/doc/">docs</a>,
|
||||
especially the <a href="http://npmjs.org/doc/faq.html">faq</a>.</p>
|
||||
<p>Check out the <a href="https://npmjs.org/doc/">docs</a>,
|
||||
especially the <a href="https://npmjs.org/doc/faq.html">faq</a>.</p>
|
||||
|
||||
<p>You can use the <code>npm help</code> command to read any of them.</p>
|
||||
|
||||
<p>If you're a developer, and you want to use npm to publish your program,
|
||||
you should <a href="http://npmjs.org/doc/developers.html">read this</a></p>
|
||||
you should <a href="https://npmjs.org/doc/developers.html">read this</a></p>
|
||||
|
||||
<h2 id="Legal-Stuff">Legal Stuff</h2>
|
||||
|
||||
@@ -227,7 +227,7 @@ process for published modules.</p>
|
||||
<p>When you find issues, please report them:</p>
|
||||
|
||||
<ul><li>web:
|
||||
<a href="http://github.com/isaacs/npm/issues">http://github.com/isaacs/npm/issues</a></li><li>email:
|
||||
<a href="https://github.com/isaacs/npm/issues">https://github.com/isaacs/npm/issues</a></li><li>email:
|
||||
<a href="mailto:npm-@googlegroups.com">npm-@googlegroups.com</a></li></ul>
|
||||
|
||||
<p>Be sure to include <em>all</em> of the output from the npm command that didn't work
|
||||
@@ -240,7 +240,7 @@ will no doubt tell you to put the output in a gist or email.</p>
|
||||
|
||||
<ul><li><a href="../doc/npm.html">npm(1)</a></li><li><a href="../doc/faq.html">faq(1)</a></li><li><a href="../doc/help.html">help(1)</a></li><li><a href="../doc/index.html">index(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer"><a href="../doc/README.html">README</a> — npm@1.1.62</p>
|
||||
<p id="footer"><a href="../doc/README.html">README</a> — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/adduser.html
vendored
2
deps/npm/html/doc/adduser.html
vendored
@@ -39,7 +39,7 @@ authorize on a new machine.</p>
|
||||
|
||||
<ul><li><a href="../doc/registry.html">registry(1)</a></li><li><a href="../doc/config.html">config(1)</a></li><li><a href="../doc/owner.html">owner(1)</a></li><li><a href="../doc/whoami.html">whoami(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">adduser — npm@1.1.62</p>
|
||||
<p id="footer">adduser — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/bin.html
vendored
2
deps/npm/html/doc/bin.html
vendored
@@ -20,7 +20,7 @@
|
||||
|
||||
<ul><li><a href="../doc/prefix.html">prefix(1)</a></li><li><a href="../doc/root.html">root(1)</a></li><li><a href="../doc/folders.html">folders(1)</a></li><li><a href="../doc/config.html">config(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">bin — npm@1.1.62</p>
|
||||
<p id="footer">bin — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/bugs.html
vendored
2
deps/npm/html/doc/bugs.html
vendored
@@ -36,7 +36,7 @@ config param.</p>
|
||||
|
||||
<ul><li><a href="../doc/docs.html">docs(1)</a></li><li><a href="../doc/view.html">view(1)</a></li><li><a href="../doc/publish.html">publish(1)</a></li><li><a href="../doc/registry.html">registry(1)</a></li><li><a href="../doc/config.html">config(1)</a></li><li><a href="../doc/json.html">json(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">bugs — npm@1.1.62</p>
|
||||
<p id="footer">bugs — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/build.html
vendored
2
deps/npm/html/doc/build.html
vendored
@@ -25,7 +25,7 @@ A folder containing a <code>package.json</code> file in its root.</li></ul>
|
||||
|
||||
<ul><li><a href="../doc/install.html">install(1)</a></li><li><a href="../doc/link.html">link(1)</a></li><li><a href="../doc/scripts.html">scripts(1)</a></li><li><a href="../doc/json.html">json(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">build — npm@1.1.62</p>
|
||||
<p id="footer">build — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/bundle.html
vendored
2
deps/npm/html/doc/bundle.html
vendored
@@ -20,7 +20,7 @@ install packages into the local space.</p>
|
||||
|
||||
<ul><li><a href="../doc/install.html">install(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">bundle — npm@1.1.62</p>
|
||||
<p id="footer">bundle — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/cache.html
vendored
2
deps/npm/html/doc/cache.html
vendored
@@ -66,7 +66,7 @@ they do not make an HTTP request to the registry.</p>
|
||||
|
||||
<ul><li><a href="../doc/folders.html">folders(1)</a></li><li><a href="../doc/config.html">config(1)</a></li><li><a href="../doc/install.html">install(1)</a></li><li><a href="../doc/publish.html">publish(1)</a></li><li><a href="../doc/pack.html">pack(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">cache — npm@1.1.62</p>
|
||||
<p id="footer">cache — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/changelog.html
vendored
2
deps/npm/html/doc/changelog.html
vendored
@@ -65,7 +65,7 @@
|
||||
|
||||
<ul><li><a href="../doc/npm.html">npm(1)</a></li><li><a href="../doc/faq.html">faq(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">changelog — npm@1.1.62</p>
|
||||
<p id="footer">changelog — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
4
deps/npm/html/doc/coding-style.html
vendored
4
deps/npm/html/doc/coding-style.html
vendored
@@ -17,6 +17,8 @@ designed to reduce visual clutter and make bugs more apparent.</p>
|
||||
<p>If you want to contribute to npm (which is very encouraged), you should
|
||||
make your code conform to npm's style.</p>
|
||||
|
||||
<p>Note: this concerns npm's code not the specific packages at npmjs.org</p>
|
||||
|
||||
<h2 id="Line-Length">Line Length</h2>
|
||||
|
||||
<p>Keep lines shorter than 80 characters. It's better for lines to be
|
||||
@@ -180,7 +182,7 @@ set to anything."</p>
|
||||
|
||||
<ul><li><a href="../doc/developers.html">developers(1)</a></li><li><a href="../doc/faq.html">faq(1)</a></li><li><a href="../doc/npm.html">npm(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">coding-style — npm@1.1.62</p>
|
||||
<p id="footer">coding-style — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/completion.html
vendored
2
deps/npm/html/doc/completion.html
vendored
@@ -33,7 +33,7 @@ completions based on the arguments.</p>
|
||||
|
||||
<ul><li><a href="../doc/developers.html">developers(1)</a></li><li><a href="../doc/faq.html">faq(1)</a></li><li><a href="../doc/npm.html">npm(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">completion — npm@1.1.62</p>
|
||||
<p id="footer">completion — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
4
deps/npm/html/doc/config.html
vendored
4
deps/npm/html/doc/config.html
vendored
@@ -105,7 +105,7 @@ global config.</p>
|
||||
|
||||
<p>The following shorthands are parsed on the command-line:</p>
|
||||
|
||||
<ul><li><code>-v</code>: <code>--version</code></li><li><code>-h</code>, <code>-?</code>, <code>--help</code>, <code>-H</code>: <code>--usage</code></li><li><code>-s</code>, <code>--silent</code>: <code>--loglevel silent</code></li><li><code>-q</code>, <code>--quiet</code>: <code>--loglevel warn</code></li><li><code>-d</code>: <code>--loglevel info</code></li><li><code>-dd</code>, <code>--verbose</code>: <code>--loglevel verbose</code></li><li><code>-ddd</code>: <code>--loglevel silly</code></li><li><code>-g</code>: <code>--global</code></li><li><code>-l</code>: <code>--long</code></li><li><code>-m</code>: <code>--message</code></li><li><code>-p</code>, <code>--porcelain</code>: <code>--parseable</code></li><li><code>-reg</code>: <code>--registry</code></li><li><code>-v</code>: <code>--version</code></li><li><code>-f</code>: <code>--force</code></li><li><code>-l</code>: <code>--long</code></li><li><code>-desc</code>: <code>--description</code></li><li><code>-S</code>: <code>--save</code></li><li><code>-D</code>: <code>--save-dev</code></li><li><code>-O</code>: <code>--save-optional</code></li><li><code>-B</code>: <code>--save-bundle</code></li><li><code>-y</code>: <code>--yes</code></li><li><code>-n</code>: <code>--yes false</code></li><li><code>ll</code> and <code>la</code> commands: <code>ls --long</code></li></ul>
|
||||
<ul><li><code>-v</code>: <code>--version</code></li><li><code>-h</code>, <code>-?</code>, <code>--help</code>, <code>-H</code>: <code>--usage</code></li><li><code>-s</code>, <code>--silent</code>: <code>--loglevel silent</code></li><li><code>-q</code>, <code>--quiet</code>: <code>--loglevel warn</code></li><li><code>-d</code>: <code>--loglevel info</code></li><li><code>-dd</code>, <code>--verbose</code>: <code>--loglevel verbose</code></li><li><code>-ddd</code>: <code>--loglevel silly</code></li><li><code>-g</code>: <code>--global</code></li><li><code>-l</code>: <code>--long</code></li><li><code>-m</code>: <code>--message</code></li><li><code>-p</code>, <code>--porcelain</code>: <code>--parseable</code></li><li><code>-reg</code>: <code>--registry</code></li><li><code>-v</code>: <code>--version</code></li><li><code>-f</code>: <code>--force</code></li><li><code>-desc</code>: <code>--description</code></li><li><code>-S</code>: <code>--save</code></li><li><code>-D</code>: <code>--save-dev</code></li><li><code>-O</code>: <code>--save-optional</code></li><li><code>-B</code>: <code>--save-bundle</code></li><li><code>-y</code>: <code>--yes</code></li><li><code>-n</code>: <code>--yes false</code></li><li><code>ll</code> and <code>la</code> commands: <code>ls --long</code></li></ul>
|
||||
|
||||
<p>If the specified configuration param resolves unambiguously to a known
|
||||
configuration parameter, then it is expanded to that configuration
|
||||
@@ -756,7 +756,7 @@ then answer "no" to any prompt.</p>
|
||||
|
||||
<ul><li><a href="../doc/folders.html">folders(1)</a></li><li><a href="../doc/npm.html">npm(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">config — npm@1.1.62</p>
|
||||
<p id="footer">config — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/dedupe.html
vendored
2
deps/npm/html/doc/dedupe.html
vendored
@@ -57,7 +57,7 @@ registry.</p>
|
||||
|
||||
<ul><li><a href="../doc/ls.html">ls(1)</a></li><li><a href="../doc/update.html">update(1)</a></li><li><a href="../doc/install.html">install(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">dedupe — npm@1.1.62</p>
|
||||
<p id="footer">dedupe — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
4
deps/npm/html/doc/deprecate.html
vendored
4
deps/npm/html/doc/deprecate.html
vendored
@@ -25,11 +25,13 @@ something like this:</p>
|
||||
<p>Note that you must be the package owner to deprecate something. See the
|
||||
<code>owner</code> and <code>adduser</code> help topics.</p>
|
||||
|
||||
<p>To un-deprecate a package, specify an empty string (<code>""</code>) for the <code>message</code> argument.</p>
|
||||
|
||||
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
||||
|
||||
<ul><li><a href="../doc/publish.html">publish(1)</a></li><li><a href="../doc/registry.html">registry(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">deprecate — npm@1.1.62</p>
|
||||
<p id="footer">deprecate — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/developers.html
vendored
2
deps/npm/html/doc/developers.html
vendored
@@ -160,7 +160,7 @@ from a fresh checkout.</p>
|
||||
|
||||
<ul><li><a href="../doc/faq.html">faq(1)</a></li><li><a href="../doc/npm.html">npm(1)</a></li><li><a href="../doc/init.html">init(1)</a></li><li><a href="../doc/json.html">json(1)</a></li><li><a href="../doc/scripts.html">scripts(1)</a></li><li><a href="../doc/publish.html">publish(1)</a></li><li><a href="../doc/adduser.html">adduser(1)</a></li><li><a href="../doc/registry.html">registry(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">developers — npm@1.1.62</p>
|
||||
<p id="footer">developers — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
12
deps/npm/html/doc/disputes.html
vendored
12
deps/npm/html/doc/disputes.html
vendored
@@ -12,6 +12,8 @@
|
||||
|
||||
<ol><li>Get the author email with <code>npm owner ls <pkgname></code></li><li>Email the author, CC <a href="mailto:i@izs.me">i@izs.me</a>.</li><li>After a few weeks, if there's no resolution, we'll sort it out.</li></ol>
|
||||
|
||||
<p>Don't squat on package names. Publish code or move out of the way.</p>
|
||||
|
||||
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
||||
|
||||
<p>There sometimes arise cases where a user publishes a module, and then
|
||||
@@ -41,7 +43,7 @@ but can't publish, because Bob's <code>foo</code> is in the way.</li></o
|
||||
Joe's appropriate course of action in each case is the same.</p>
|
||||
|
||||
<ol><li><code>npm owner ls foo</code>. This will tell Joe the email address of the
|
||||
owner (Bob).</li><li>Joe emails Bob, explaining the situation <strong>as respecfully as possible</strong>,
|
||||
owner (Bob).</li><li>Joe emails Bob, explaining the situation <strong>as respectfully as possible</strong>,
|
||||
and what he would like to do with the module name. He adds
|
||||
isaacs <a href="mailto:i@izs.me">i@izs.me</a> to the CC list of the email. Mention in the email
|
||||
that Bob can run <code>npm owner add joe foo</code> to add Joe as an owner of
|
||||
@@ -72,7 +74,11 @@ but not limited to:</p>
|
||||
<ol><li>Malware (that is, a module designed to exploit or harm the machine on
|
||||
which it is installed)</li><li>Violations of copyright or licenses (for example, cloning an
|
||||
MIT-licensed program, and then removing or changing the copyright and
|
||||
license statement)</li><li>Illegal content.</li></ol>
|
||||
license statement)</li><li>Illegal content.</li><li>"Squatting" on a package name that you <em>plan</em> to use, but aren't
|
||||
actually using. Sorry, I don't care how great the name is, or how
|
||||
perfect a fit it is for the thing that someday might happen. If
|
||||
someone wants to use it today, and you're just taking up space with
|
||||
an empty tarball, you're going to be evicted.</li></ol>
|
||||
|
||||
<p>If you see bad behavior like this, please report it right away.</p>
|
||||
|
||||
@@ -80,7 +86,7 @@ license statement)</li><li>Illegal content.</li></ol>
|
||||
|
||||
<ul><li><a href="../doc/registry.html">registry(1)</a></li><li><a href="../doc/owner.html">owner(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">disputes — npm@1.1.62</p>
|
||||
<p id="footer">disputes — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/docs.html
vendored
2
deps/npm/html/doc/docs.html
vendored
@@ -37,7 +37,7 @@ config param.</p>
|
||||
|
||||
<ul><li><a href="../doc/view.html">view(1)</a></li><li><a href="../doc/publish.html">publish(1)</a></li><li><a href="../doc/registry.html">registry(1)</a></li><li><a href="../doc/config.html">config(1)</a></li><li><a href="../doc/json.html">json(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">docs — npm@1.1.62</p>
|
||||
<p id="footer">docs — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/edit.html
vendored
2
deps/npm/html/doc/edit.html
vendored
@@ -37,7 +37,7 @@ or <code>"notepad"</code> on Windows.</li><li>Type: path</li></ul>
|
||||
|
||||
<ul><li><a href="../doc/folders.html">folders(1)</a></li><li><a href="../doc/explore.html">explore(1)</a></li><li><a href="../doc/install.html">install(1)</a></li><li><a href="../doc/config.html">config(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">edit — npm@1.1.62</p>
|
||||
<p id="footer">edit — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/explore.html
vendored
2
deps/npm/html/doc/explore.html
vendored
@@ -40,7 +40,7 @@ Windows</li><li>Type: path</li></ul>
|
||||
|
||||
<ul><li><a href="../doc/submodule.html">submodule(1)</a></li><li><a href="../doc/folders.html">folders(1)</a></li><li><a href="../doc/edit.html">edit(1)</a></li><li><a href="../doc/rebuild.html">rebuild(1)</a></li><li><a href="../doc/build.html">build(1)</a></li><li><a href="../doc/install.html">install(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">explore — npm@1.1.62</p>
|
||||
<p id="footer">explore — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
10
deps/npm/html/doc/faq.html
vendored
10
deps/npm/html/doc/faq.html
vendored
@@ -10,7 +10,7 @@
|
||||
|
||||
<h2 id="Where-can-I-find-these-docs-in-HTML">Where can I find these docs in HTML?</h2>
|
||||
|
||||
<p><a href="http://npmjs.org/doc/">http://npmjs.org/doc/</a>, or run:</p>
|
||||
<p><a href="https://npmjs.org/doc/">https://npmjs.org/doc/</a>, or run:</p>
|
||||
|
||||
<pre><code>npm config set viewer browser</code></pre>
|
||||
|
||||
@@ -148,7 +148,7 @@ command.)</p>
|
||||
|
||||
<p>In those cases, you can do this:</p>
|
||||
|
||||
<pre><code>curl http://npmjs.org/install.sh | sh</code></pre>
|
||||
<pre><code>curl https://npmjs.org/install.sh | sh</code></pre>
|
||||
|
||||
<h2 id="What-is-a-package">What is a <code>package</code>?</h2>
|
||||
|
||||
@@ -175,7 +175,7 @@ an argument to <code>git checkout</code>. The default is <code>master</code>.</
|
||||
|
||||
<p>You don't. Try one of these:</p>
|
||||
|
||||
<ul><li><a href="http://github.com/isaacs/nave">http://github.com/isaacs/nave</a></li><li><a href="http://github.com/visionmedia/n">http://github.com/visionmedia/n</a></li><li><a href="http://github.com/creationix/nvm">http://github.com/creationix/nvm</a></li></ul>
|
||||
<ul><li><a href="https://github.com/isaacs/nave">https://github.com/isaacs/nave</a></li><li><a href="https://github.com/visionmedia/n">https://github.com/visionmedia/n</a></li><li><a href="https://github.com/creationix/nvm">https://github.com/creationix/nvm</a></li></ul>
|
||||
|
||||
<h2 id="How-can-I-use-npm-for-development">How can I use npm for development?</h2>
|
||||
|
||||
@@ -240,7 +240,7 @@ There is not sufficient need to impose namespace rules on everyone.</p>
|
||||
|
||||
<p>Discuss it on the mailing list, or post an issue.</p>
|
||||
|
||||
<ul><li><a href="mailto:npm-@googlegroups.com">npm-@googlegroups.com</a></li><li><a href="http://github.com/isaacs/npm/issues">http://github.com/isaacs/npm/issues</a></li></ul>
|
||||
<ul><li><a href="mailto:npm-@googlegroups.com">npm-@googlegroups.com</a></li><li><a href="https://github.com/isaacs/npm/issues">https://github.com/isaacs/npm/issues</a></li></ul>
|
||||
|
||||
<h2 id="Why-does-npm-hate-me">Why does npm hate me?</h2>
|
||||
|
||||
@@ -250,7 +250,7 @@ There is not sufficient need to impose namespace rules on everyone.</p>
|
||||
|
||||
<ul><li><a href="../doc/npm.html">npm(1)</a></li><li><a href="../doc/developers.html">developers(1)</a></li><li><a href="../doc/json.html">json(1)</a></li><li><a href="../doc/config.html">config(1)</a></li><li><a href="../doc/folders.html">folders(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">faq — npm@1.1.62</p>
|
||||
<p id="footer">faq — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/folders.html
vendored
2
deps/npm/html/doc/folders.html
vendored
@@ -205,7 +205,7 @@ cannot be found elsewhere. See <code><a href="../doc/json.html">json(1)</a></co
|
||||
|
||||
<ul><li><a href="../doc/faq.html">faq(1)</a></li><li><a href="../doc/json.html">json(1)</a></li><li><a href="../doc/install.html">install(1)</a></li><li><a href="../doc/pack.html">pack(1)</a></li><li><a href="../doc/cache.html">cache(1)</a></li><li><a href="../doc/config.html">config(1)</a></li><li><a href="../doc/publish.html">publish(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">folders — npm@1.1.62</p>
|
||||
<p id="footer">folders — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/help-search.html
vendored
2
deps/npm/html/doc/help-search.html
vendored
@@ -38,7 +38,7 @@ where the terms were found in the documentation.</p>
|
||||
|
||||
<ul><li><a href="../doc/npm.html">npm(1)</a></li><li><a href="../doc/faq.html">faq(1)</a></li><li><a href="../doc/help.html">help(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">help-search — npm@1.1.62</p>
|
||||
<p id="footer">help-search — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/help.html
vendored
2
deps/npm/html/doc/help.html
vendored
@@ -36,7 +36,7 @@ matches are equivalent to specifying a topic name.</p>
|
||||
|
||||
<ul><li><a href="../doc/npm.html">npm(1)</a></li><li><a href="../doc/README.html">README</a></li><li><a href="../doc/faq.html">faq(1)</a></li><li><a href="../doc/folders.html">folders(1)</a></li><li><a href="../doc/config.html">config(1)</a></li><li><a href="../doc/json.html">json(1)</a></li><li><a href="../doc/help-search.html">help-search(1)</a></li><li><a href="../doc/index.html">index(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">help — npm@1.1.62</p>
|
||||
<p id="footer">help — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/index.html
vendored
2
deps/npm/html/doc/index.html
vendored
@@ -388,7 +388,7 @@
|
||||
|
||||
<p> Display npm username</p>
|
||||
</div>
|
||||
<p id="footer">index — npm@1.1.62</p>
|
||||
<p id="footer">index — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/init.html
vendored
2
deps/npm/html/doc/init.html
vendored
@@ -29,7 +29,7 @@ without a really good reason to do so.</p>
|
||||
|
||||
<ul><li><a href="https://github.com/isaacs/init-package-json">https://github.com/isaacs/init-package-json</a></li><li><a href="../doc/json.html">json(1)</a></li><li><a href="../doc/version.html">version(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">init — npm@1.1.62</p>
|
||||
<p id="footer">init — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/install.html
vendored
2
deps/npm/html/doc/install.html
vendored
@@ -133,7 +133,7 @@ affects a real use-case, it will be investigated.</p>
|
||||
|
||||
<ul><li><a href="../doc/folders.html">folders(1)</a></li><li><a href="../doc/update.html">update(1)</a></li><li><a href="../doc/link.html">link(1)</a></li><li><a href="../doc/rebuild.html">rebuild(1)</a></li><li><a href="../doc/scripts.html">scripts(1)</a></li><li><a href="../doc/build.html">build(1)</a></li><li><a href="../doc/config.html">config(1)</a></li><li><a href="../doc/registry.html">registry(1)</a></li><li><a href="../doc/folders.html">folders(1)</a></li><li><a href="../doc/tag.html">tag(1)</a></li><li><a href="../doc/rm.html">rm(1)</a></li><li><a href="../doc/shrinkwrap.html">shrinkwrap(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">install — npm@1.1.62</p>
|
||||
<p id="footer">install — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
4
deps/npm/html/doc/json.html
vendored
4
deps/npm/html/doc/json.html
vendored
@@ -339,7 +339,7 @@ a version in the following fashion.</p>
|
||||
|
||||
<p>For example, the following are equivalent:</p>
|
||||
|
||||
<ul><li><code>"~1.2.3" = ">=1.2.3 <1.3.0"</code></li><li><code>"~1.2" = ">=1.2.0 <2.0.0"</code></li><li><code>"~1" = ">=1.0.0 <2.0.0"</code></li></ul>
|
||||
<ul><li><code>"~1.2.3" = ">=1.2.3 <1.3.0"</code></li><li><code>"~1.2" = ">=1.2.0 <1.3.0"</code></li><li><code>"~1" = ">=1.0.0 <1.1.0"</code></li></ul>
|
||||
|
||||
<h3 id="X-Version-Ranges">X Version Ranges</h3>
|
||||
|
||||
@@ -525,7 +525,7 @@ overridden.</p>
|
||||
|
||||
<ul><li><a href="../doc/semver.html">semver(1)</a></li><li><a href="../doc/init.html">init(1)</a></li><li><a href="../doc/version.html">version(1)</a></li><li><a href="../doc/config.html">config(1)</a></li><li><a href="../doc/help.html">help(1)</a></li><li><a href="../doc/faq.html">faq(1)</a></li><li><a href="../doc/install.html">install(1)</a></li><li><a href="../doc/publish.html">publish(1)</a></li><li><a href="../doc/rm.html">rm(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">json — npm@1.1.62</p>
|
||||
<p id="footer">json — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/link.html
vendored
2
deps/npm/html/doc/link.html
vendored
@@ -58,7 +58,7 @@ installation target into your project's <code>node_modules</code> folder.</p
|
||||
|
||||
<ul><li><a href="../doc/developers.html">developers(1)</a></li><li><a href="../doc/faq.html">faq(1)</a></li><li><a href="../doc/json.html">json(1)</a></li><li><a href="../doc/install.html">install(1)</a></li><li><a href="../doc/folders.html">folders(1)</a></li><li><a href="../doc/config.html">config(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">link — npm@1.1.62</p>
|
||||
<p id="footer">link — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
4
deps/npm/html/doc/ls.html
vendored
4
deps/npm/html/doc/ls.html
vendored
@@ -25,7 +25,7 @@ limit the results to only the paths to the packages named. Note that
|
||||
nested packages will <em>also</em> show the paths to the specified packages.
|
||||
For example, running <code>npm ls promzard</code> in npm's source tree will show:</p>
|
||||
|
||||
<pre><code>npm@1.1.62 /path/to/npm
|
||||
<pre><code>npm@1.2.0 /path/to/npm
|
||||
└─┬ init-package-json@0.0.4
|
||||
└── promzard@0.1.5</code></pre>
|
||||
|
||||
@@ -64,7 +64,7 @@ project.</p>
|
||||
|
||||
<ul><li><a href="../doc/config.html">config(1)</a></li><li><a href="../doc/folders.html">folders(1)</a></li><li><a href="../doc/install.html">install(1)</a></li><li><a href="../doc/link.html">link(1)</a></li><li><a href="../doc/prune.html">prune(1)</a></li><li><a href="../doc/outdated.html">outdated(1)</a></li><li><a href="../doc/update.html">update(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">ls — npm@1.1.62</p>
|
||||
<p id="footer">ls — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
4
deps/npm/html/doc/npm.html
vendored
4
deps/npm/html/doc/npm.html
vendored
@@ -14,7 +14,7 @@
|
||||
|
||||
<h2 id="VERSION">VERSION</h2>
|
||||
|
||||
<p>1.1.62</p>
|
||||
<p>1.2.0</p>
|
||||
|
||||
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
||||
|
||||
@@ -135,7 +135,7 @@ will no doubt tell you to put the output in a gist or email.</p>
|
||||
|
||||
<ul><li><a href="../doc/help.html">help(1)</a></li><li><a href="../doc/faq.html">faq(1)</a></li><li><a href="../doc/README.html">README</a></li><li><a href="../doc/json.html">json(1)</a></li><li><a href="../doc/install.html">install(1)</a></li><li><a href="../doc/config.html">config(1)</a></li><li><a href="../doc/index.html">index(1)</a></li><li><a href="../api/npm.html">npm(3)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">npm — npm@1.1.62</p>
|
||||
<p id="footer">npm — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/outdated.html
vendored
2
deps/npm/html/doc/outdated.html
vendored
@@ -21,7 +21,7 @@ packages are currently outdated.</p>
|
||||
|
||||
<ul><li><a href="../doc/update.html">update(1)</a></li><li><a href="../doc/registry.html">registry(1)</a></li><li><a href="../doc/folders.html">folders(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">outdated — npm@1.1.62</p>
|
||||
<p id="footer">outdated — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/owner.html
vendored
2
deps/npm/html/doc/owner.html
vendored
@@ -34,7 +34,7 @@ that is not implemented at this time.</p>
|
||||
|
||||
<ul><li><a href="../doc/publish.html">publish(1)</a></li><li><a href="../doc/registry.html">registry(1)</a></li><li><a href="../doc/adduser.html">adduser(1)</a></li><li><a href="../doc/disputes.html">disputes(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">owner — npm@1.1.62</p>
|
||||
<p id="footer">owner — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/pack.html
vendored
2
deps/npm/html/doc/pack.html
vendored
@@ -29,7 +29,7 @@ overwritten the second time.</p>
|
||||
|
||||
<ul><li><a href="../doc/cache.html">cache(1)</a></li><li><a href="../doc/publish.html">publish(1)</a></li><li><a href="../doc/config.html">config(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">pack — npm@1.1.62</p>
|
||||
<p id="footer">pack — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/prefix.html
vendored
2
deps/npm/html/doc/prefix.html
vendored
@@ -20,7 +20,7 @@
|
||||
|
||||
<ul><li><a href="../doc/root.html">root(1)</a></li><li><a href="../doc/bin.html">bin(1)</a></li><li><a href="../doc/folders.html">folders(1)</a></li><li><a href="../doc/config.html">config(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">prefix — npm@1.1.62</p>
|
||||
<p id="footer">prefix — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/prune.html
vendored
2
deps/npm/html/doc/prune.html
vendored
@@ -25,7 +25,7 @@ package's dependencies list.</p>
|
||||
|
||||
<ul><li><a href="../doc/rm.html">rm(1)</a></li><li><a href="../doc/folders.html">folders(1)</a></li><li><a href="../doc/list.html">list(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">prune — npm@1.1.62</p>
|
||||
<p id="footer">prune — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/publish.html
vendored
2
deps/npm/html/doc/publish.html
vendored
@@ -29,7 +29,7 @@ the registry. Overwrites when the "--force" flag is set.</p>
|
||||
|
||||
<ul><li><a href="../doc/registry.html">registry(1)</a></li><li><a href="../doc/adduser.html">adduser(1)</a></li><li><a href="../doc/owner.html">owner(1)</a></li><li><a href="../doc/deprecate.html">deprecate(1)</a></li><li><a href="../doc/tag.html">tag(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">publish — npm@1.1.62</p>
|
||||
<p id="footer">publish — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/rebuild.html
vendored
2
deps/npm/html/doc/rebuild.html
vendored
@@ -25,7 +25,7 @@ the new binary.</p>
|
||||
|
||||
<ul><li><a href="../doc/build.html">build(1)</a></li><li><a href="../doc/install.html">install(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">rebuild — npm@1.1.62</p>
|
||||
<p id="footer">rebuild — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
6
deps/npm/html/doc/registry.html
vendored
6
deps/npm/html/doc/registry.html
vendored
@@ -89,15 +89,13 @@ ask for help on the <a href="mailto:npm-@googlegroups.com">npm-@googlegroups.com
|
||||
|
||||
<h2 id="Is-there-a-website-or-something-to-see-package-docs-and-such">Is there a website or something to see package docs and such?</h2>
|
||||
|
||||
<p>No, but such a thing is planned, and a tiny bit developed.</p>
|
||||
|
||||
<p>Stay tuned!</p>
|
||||
<p>Yes, head over to <a href="https://npmjs.org/">https://npmjs.org/</a></p>
|
||||
|
||||
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
||||
|
||||
<ul><li><a href="../doc/config.html">config(1)</a></li><li><a href="../doc/developers.html">developers(1)</a></li><li><a href="../doc/disputes.html">disputes(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">registry — npm@1.1.62</p>
|
||||
<p id="footer">registry — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/removing-npm.html
vendored
2
deps/npm/html/doc/removing-npm.html
vendored
@@ -58,7 +58,7 @@ modules. To track those down, you can do the following:</p>
|
||||
|
||||
<ul><li><a href="../doc/README.html">README</a></li><li><a href="../doc/rm.html">rm(1)</a></li><li><a href="../doc/prune.html">prune(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">removing-npm — npm@1.1.62</p>
|
||||
<p id="footer">removing-npm — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/restart.html
vendored
2
deps/npm/html/doc/restart.html
vendored
@@ -24,7 +24,7 @@ the "start" script.</p>
|
||||
|
||||
<ul><li><a href="../doc/run-script.html">run-script(1)</a></li><li><a href="../doc/scripts.html">scripts(1)</a></li><li><a href="../doc/test.html">test(1)</a></li><li><a href="../doc/start.html">start(1)</a></li><li><a href="../doc/stop.html">stop(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">restart — npm@1.1.62</p>
|
||||
<p id="footer">restart — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/root.html
vendored
2
deps/npm/html/doc/root.html
vendored
@@ -20,7 +20,7 @@
|
||||
|
||||
<ul><li><a href="../doc/prefix.html">prefix(1)</a></li><li><a href="../doc/bin.html">bin(1)</a></li><li><a href="../doc/folders.html">folders(1)</a></li><li><a href="../doc/config.html">config(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">root — npm@1.1.62</p>
|
||||
<p id="footer">root — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
2
deps/npm/html/doc/run-script.html
vendored
2
deps/npm/html/doc/run-script.html
vendored
@@ -23,7 +23,7 @@ called directly, as well.</p>
|
||||
|
||||
<ul><li><a href="../doc/scripts.html">scripts(1)</a></li><li><a href="../doc/test.html">test(1)</a></li><li><a href="../doc/start.html">start(1)</a></li><li><a href="../doc/restart.html">restart(1)</a></li><li><a href="../doc/stop.html">stop(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">run-script — npm@1.1.62</p>
|
||||
<p id="footer">run-script — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
51
deps/npm/html/doc/scripts.html
vendored
51
deps/npm/html/doc/scripts.html
vendored
@@ -13,15 +13,16 @@
|
||||
<p>npm supports the "scripts" member of the package.json script, for the
|
||||
following scripts:</p>
|
||||
|
||||
<ul><li>preinstall:
|
||||
<ul><li>prepublish:
|
||||
Run BEFORE the package is published. (Also run on local <code>npm
|
||||
install</code> without any arguments.)</li><li>publish, postpublish:
|
||||
Run AFTER the package is published.</li><li>preinstall:
|
||||
Run BEFORE the package is installed</li><li>install, postinstall:
|
||||
Run AFTER the package is installed.</li><li>preuninstall, uninstall:
|
||||
Run BEFORE the package is uninstalled.</li><li>postuninstall:
|
||||
Run AFTER the package is uninstalled.</li><li>preupdate:
|
||||
Run BEFORE the package is updated with the update command.</li><li>update, postupdate:
|
||||
Run AFTER the package is updated with the update command.</li><li>prepublish:
|
||||
Run BEFORE the package is published.</li><li>publish, postpublish:
|
||||
Run AFTER the package is published.</li><li>pretest, test, posttest:
|
||||
Run AFTER the package is updated with the update command.</li><li>pretest, test, posttest:
|
||||
Run by the <code>npm test</code> command.</li><li>prestop, stop, poststop:
|
||||
Run by the <code>npm stop</code> command.</li><li>prestart, start, poststart:
|
||||
Run by the <code>npm start</code> command.</li><li>prerestart, restart, postrestart:
|
||||
@@ -31,6 +32,46 @@ stop and start scripts if no <code>restart</code> script is provided.</li></ul>
|
||||
<p>Additionally, arbitrary scrips can be run by doing
|
||||
<code>npm run-script <stage> <pkg></code>.</p>
|
||||
|
||||
<h2 id="NOTE-INSTALL-SCRIPTS-ARE-AN-ANTIPATTERN">NOTE: INSTALL SCRIPTS ARE AN ANTIPATTERN</h2>
|
||||
|
||||
<p><strong>tl;dr</strong> Don't use <code>install</code>. Use a <code>.gyp</code> file for compilation, and
|
||||
<code>prepublish</code> for anything else.</p>
|
||||
|
||||
<p>You should almost never have to explicitly set a <code>preinstall</code> or
|
||||
<code>install</code> script. If you are doing this, please consider if there is
|
||||
another option.</p>
|
||||
|
||||
<p>The only valid use of <code>install</code> or <code>preinstall</code> scripts is for
|
||||
compilation which must be done on the target architecture. In early
|
||||
versions of node, this was often done using the <code>node-waf</code> scripts, or
|
||||
a standalone <code>Makefile</code>, and early versions of npm required that it be
|
||||
explicitly set in package.json. This was not portable, and harder to
|
||||
do properly.</p>
|
||||
|
||||
<p>In the current version of node, the standard way to do this is using a
|
||||
<code>.gyp</code> file. If you have a file with a <code>.gyp</code> extension in the root
|
||||
of your package, then npm will run the appropriate <code>node-gyp</code> commands
|
||||
automatically at install time. This is the only officially supported
|
||||
method for compiling binary addons, and does not require that you add
|
||||
anything to your package.json file.</p>
|
||||
|
||||
<p>If you have to do other things before your package is used, in a way
|
||||
that is not dependent on the operating system or architecture of the
|
||||
target system, then use a <code>prepublish</code> script instead. This includes
|
||||
tasks such as:</p>
|
||||
|
||||
<ul><li>Compile CoffeeScript source code into JavaScript.</li><li>Create minified versions of JavaScript source code.</li><li>Fetching remote resources that your package will use.</li></ul>
|
||||
|
||||
<p>The advantage of doing these things at <code>prepublish</code> time instead of
|
||||
<code>preinstall</code> or <code>install</code> time is that they can be done once, in a
|
||||
single place, and thus greatly reduce complexity and variability.
|
||||
Additionally, this means that:</p>
|
||||
|
||||
<ul><li>You can depend on <code>coffee-script</code> as a <code>devDependency</code>, and thus
|
||||
your users don't need to have it installed.</li><li>You don't need to include the minifiers in your package, reducing
|
||||
the size for your users.</li><li>You don't need to rely on your users having <code>curl</code> or <code>wget</code> or
|
||||
other system tools on the target machines.</li></ul>
|
||||
|
||||
<h2 id="DEFAULT-VALUES">DEFAULT VALUES</h2>
|
||||
|
||||
<p>npm will default some script values based on package contents.</p>
|
||||
@@ -177,7 +218,7 @@ will sudo the npm command in question.</li></ul>
|
||||
|
||||
<ul><li><a href="../doc/run-script.html">run-script(1)</a></li><li><a href="../doc/json.html">json(1)</a></li><li><a href="../doc/developers.html">developers(1)</a></li><li><a href="../doc/install.html">install(1)</a></li></ul>
|
||||
</div>
|
||||
<p id="footer">scripts — npm@1.1.62</p>
|
||||
<p id="footer">scripts — npm@1.2.0</p>
|
||||
<script>
|
||||
;(function () {
|
||||
var wrapper = document.getElementById("wrapper")
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user