debian/0000755000000000000000000000000012212734533007170 5ustar debian/npm.bash-completion0000644000000000000000000000003412124570026012762 0ustar lib/utils/completion.sh npm debian/doc-base.files0000644000000000000000000000036612212724106011671 0ustar Document: npm-files Title: Npm files documentation Author: Isaac Z. Schlueter Abstract: This describes the files used by npm. Section: Programming Format: HTML Index: /usr/share/doc/npm/misc/npm-index.html Files: /usr/share/doc/npm/files/*.html debian/copyright_hints0000644000000000000000000004037712212731405012336 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: FIXME Upstream-Contact: FIXME Source: FIXME Disclaimer: Autogenerated by CDBS Files: AUTHORS Makefile README.md bin/node-gyp-bin/node-gyp bin/node-gyp-bin/node-gyp.cmd bin/npm bin/npm-cli.js bin/npm.cmd bin/read-package-json.js cli.js configure debian/NEWS debian/README.Debian debian/README.source debian/TODO debian/clean debian/compat debian/control debian/control.in debian/doc-base.api debian/doc-base.cli debian/doc-base.files debian/doc-base.misc debian/docs debian/gbp.conf debian/install debian/links debian/lintian-overrides debian/manpages debian/npm.bash-completion debian/npmrc debian/patches/2002_use_ruby_ronn.patch debian/patches/2003_fix_doc.patch debian/patches/2004_remove_shebang.patch debian/patches/2005_index_build_dont_run_npm.patch debian/patches/2006_rename_node_to_nodejs.patch debian/patches/2007_do_not_require_cmd-shim.patch debian/patches/2008_do_not_require_child-process-close.patch debian/patches/series debian/rules debian/source/format debian/source/local-options debian/watch doc/api/npm-bin.md doc/api/npm-bugs.md doc/api/npm-commands.md doc/api/npm-config.md doc/api/npm-deprecate.md doc/api/npm-docs.md doc/api/npm-edit.md doc/api/npm-explore.md doc/api/npm-help-search.md doc/api/npm-init.md doc/api/npm-install.md doc/api/npm-link.md doc/api/npm-load.md doc/api/npm-ls.md doc/api/npm-outdated.md doc/api/npm-owner.md doc/api/npm-pack.md doc/api/npm-prefix.md doc/api/npm-prune.md doc/api/npm-publish.md doc/api/npm-rebuild.md doc/api/npm-restart.md doc/api/npm-root.md doc/api/npm-run-script.md doc/api/npm-search.md doc/api/npm-shrinkwrap.md doc/api/npm-start.md doc/api/npm-stop.md doc/api/npm-submodule.md doc/api/npm-tag.md doc/api/npm-test.md doc/api/npm-uninstall.md doc/api/npm-unpublish.md doc/api/npm-update.md doc/api/npm-version.md doc/api/npm-view.md doc/api/npm-whoami.md doc/api/npm.md doc/api/repo.md doc/cli/npm-adduser.md doc/cli/npm-bin.md doc/cli/npm-bugs.md doc/cli/npm-build.md doc/cli/npm-bundle.md doc/cli/npm-cache.md doc/cli/npm-completion.md doc/cli/npm-config.md doc/cli/npm-dedupe.md doc/cli/npm-deprecate.md doc/cli/npm-docs.md doc/cli/npm-edit.md doc/cli/npm-explore.md doc/cli/npm-help-search.md doc/cli/npm-help.md doc/cli/npm-init.md doc/cli/npm-install.md doc/cli/npm-link.md doc/cli/npm-ls.md doc/cli/npm-outdated.md doc/cli/npm-owner.md doc/cli/npm-pack.md doc/cli/npm-prefix.md doc/cli/npm-prune.md doc/cli/npm-publish.md doc/cli/npm-rebuild.md doc/cli/npm-restart.md doc/cli/npm-rm.md doc/cli/npm-root.md doc/cli/npm-run-script.md doc/cli/npm-search.md doc/cli/npm-shrinkwrap.md doc/cli/npm-star.md doc/cli/npm-stars.md doc/cli/npm-start.md doc/cli/npm-stop.md doc/cli/npm-submodule.md doc/cli/npm-tag.md doc/cli/npm-test.md doc/cli/npm-uninstall.md doc/cli/npm-unpublish.md doc/cli/npm-update.md doc/cli/npm-version.md doc/cli/npm-view.md doc/cli/npm-whoami.md doc/cli/npm.md doc/cli/repo.md doc/files/npm-folders.md doc/files/npmrc.md doc/files/package.json.md doc/misc/npm-coding-style.md doc/misc/npm-config.md doc/misc/npm-developers.md doc/misc/npm-disputes.md doc/misc/npm-faq.md doc/misc/npm-registry.md doc/misc/npm-scripts.md doc/misc/removing-npm.md doc/misc/semver.md html/docfoot-script.html html/docfoot.html html/dochead.html html/index.html lib/adduser.js lib/bin.js lib/bugs.js lib/build.js lib/cache.js lib/config.js lib/deprecate.js lib/docs.js lib/edit.js lib/explore.js lib/faq.js lib/get.js lib/help-search.js lib/init.js lib/link.js lib/ls.js lib/outdated.js lib/owner.js lib/pack.js lib/prefix.js lib/prune.js lib/publish.js lib/rebuild.js lib/repo.js lib/restart.js lib/root.js lib/search.js lib/set.js lib/shrinkwrap.js lib/star.js lib/stars.js lib/start.js lib/stop.js lib/submodule.js lib/tag.js lib/test.js lib/unbuild.js lib/uninstall.js lib/unpublish.js lib/update.js lib/utils/completion.sh lib/utils/completion/file-completion.js lib/utils/completion/installed-deep.js lib/utils/completion/installed-shallow.js lib/utils/error-handler.js lib/utils/fetch.js lib/utils/find-prefix.js lib/utils/gently-rm.js lib/utils/is-git-url.js lib/utils/lifecycle.js lib/utils/link.js lib/version.js lib/view.js lib/whoami.js lib/xmas.js node_modules/chmodr/README.md node_modules/chmodr/chmodr.js node_modules/chmodr/package.json node_modules/chmodr/test/basic.js node_modules/chmodr/test/sync.js node_modules/chownr/README.md node_modules/chownr/chownr.js node_modules/chownr/package.json node_modules/editor/README.markdown node_modules/editor/example/beep.json node_modules/editor/example/edit.js node_modules/editor/index.js node_modules/editor/package.json node_modules/fstream-npm/.npmignore node_modules/fstream-npm/README.md node_modules/fstream-npm/example/bundle.js node_modules/fstream-npm/example/dir-tar.js node_modules/fstream-npm/example/dir.js node_modules/fstream-npm/example/example.js node_modules/fstream-npm/example/ig-tar.js node_modules/fstream-npm/example/tar.js node_modules/fstream-npm/fstream-npm.js node_modules/fstream-npm/package.json node_modules/init-package-json/README.md node_modules/init-package-json/default-input.js node_modules/init-package-json/example.js node_modules/init-package-json/init-package-json.js node_modules/init-package-json/node_modules/promzard/.npmignore node_modules/init-package-json/node_modules/promzard/README.md node_modules/init-package-json/node_modules/promzard/example/index.js node_modules/init-package-json/node_modules/promzard/example/npm-init/README.md node_modules/init-package-json/node_modules/promzard/example/npm-init/init.js node_modules/init-package-json/node_modules/promzard/example/npm-init/package.json node_modules/init-package-json/node_modules/promzard/package.json node_modules/init-package-json/node_modules/promzard/promzard.js node_modules/init-package-json/node_modules/promzard/test/basic.js node_modules/init-package-json/node_modules/promzard/test/exports.input node_modules/init-package-json/node_modules/promzard/test/fn.input node_modules/init-package-json/node_modules/promzard/test/simple.input node_modules/init-package-json/node_modules/promzard/test/simple.js node_modules/init-package-json/package.json node_modules/init-package-json/test/basic.input node_modules/init-package-json/test/basic.js node_modules/npm-registry-client/.npmignore node_modules/npm-registry-client/README.md node_modules/npm-registry-client/index.js node_modules/npm-registry-client/lib/adduser.js node_modules/npm-registry-client/lib/get.js node_modules/npm-registry-client/lib/publish.js node_modules/npm-registry-client/lib/request.js node_modules/npm-registry-client/lib/star.js node_modules/npm-registry-client/lib/stars.js node_modules/npm-registry-client/lib/tag.js node_modules/npm-registry-client/lib/unpublish.js node_modules/npm-registry-client/lib/upload.js node_modules/npm-registry-client/node_modules/couch-login/.npmignore node_modules/npm-registry-client/node_modules/couch-login/README.md node_modules/npm-registry-client/node_modules/couch-login/package.json node_modules/npm-registry-client/node_modules/couch-login/test/00-setup.js node_modules/npm-registry-client/node_modules/couch-login/test/basic.js node_modules/npm-registry-client/node_modules/couch-login/test/fixtures/_replicator.couch node_modules/npm-registry-client/node_modules/couch-login/test/fixtures/couch.ini node_modules/npm-registry-client/node_modules/couch-login/test/registry.js node_modules/npm-registry-client/node_modules/couch-login/test/reset-then-signup.js node_modules/npm-registry-client/node_modules/couch-login/test/zz-teardown.js node_modules/npm-registry-client/package.json node_modules/npm-registry-client/test/00-setup.js node_modules/npm-registry-client/test/adduser-new.js node_modules/npm-registry-client/test/adduser-update.js node_modules/npm-registry-client/test/basic.js node_modules/npm-registry-client/test/retries.js node_modules/npm-registry-client/test/zz-cleanup.js node_modules/npm-user-validate/.npmignore node_modules/npm-user-validate/.travis.yml node_modules/npm-user-validate/README.md node_modules/npm-user-validate/npm-user-validate.js node_modules/npm-user-validate/package.json node_modules/npm-user-validate/test/email.test.js node_modules/npm-user-validate/test/pw.test.js node_modules/npm-user-validate/test/username.test.js node_modules/npmconf/.npmignore node_modules/npmconf/README.md node_modules/npmconf/config-defs.js node_modules/npmconf/node_modules/config-chain/.npmignore node_modules/npmconf/node_modules/config-chain/index.js node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/README.md node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/package.json node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/proto-list.js node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/test/basic.js node_modules/npmconf/node_modules/config-chain/package.json node_modules/npmconf/node_modules/config-chain/readme.markdown node_modules/npmconf/node_modules/config-chain/test/broken.js node_modules/npmconf/node_modules/config-chain/test/broken.json node_modules/npmconf/node_modules/config-chain/test/chain-class.js node_modules/npmconf/node_modules/config-chain/test/env.js node_modules/npmconf/node_modules/config-chain/test/find-file.js node_modules/npmconf/node_modules/config-chain/test/ignore-unfound-file.js node_modules/npmconf/node_modules/config-chain/test/ini.js node_modules/npmconf/node_modules/config-chain/test/save.js node_modules/npmconf/npmconf.js node_modules/npmconf/package.json node_modules/npmconf/test/00-setup.js node_modules/npmconf/test/basic.js node_modules/npmconf/test/builtin.js node_modules/npmconf/test/fixtures/builtin node_modules/npmconf/test/fixtures/globalconfig node_modules/npmconf/test/fixtures/userconfig node_modules/npmconf/test/save.js node_modules/opener/README.md node_modules/opener/opener.js node_modules/read-installed/README.md node_modules/read-installed/package.json node_modules/read-installed/read-installed.js node_modules/read-installed/test/basic.js node_modules/uid-number/README.md node_modules/uid-number/get-uid-gid.js node_modules/uid-number/package.json node_modules/uid-number/uid-number.js package.json scripts/clean-old.sh scripts/doc-build.sh scripts/index-build.js scripts/install.sh scripts/release.sh scripts/relocate.sh test/common.js test/disabled/bundlerecurs/package.json test/disabled/change-bin-1/bin/foo test/disabled/change-bin-1/package.json test/disabled/change-bin-2/bin/bar test/disabled/change-bin-2/package.json test/disabled/failer/package.json test/disabled/fast/package.json test/disabled/package-bar/package.json test/disabled/package-config/package.json test/disabled/package-config/test.js test/disabled/package-foo/package.json test/disabled/slow/package.json test/disabled/startstop/package.json test/packages/npm-test-array-bin/README test/packages/npm-test-array-bin/bin/array-bin test/packages/npm-test-array-bin/package.json test/packages/npm-test-array-bin/test.js test/packages/npm-test-blerg/README test/packages/npm-test-blerg/package.json test/packages/npm-test-blerg/test.js test/packages/npm-test-blerg3/README test/packages/npm-test-blerg3/package.json test/packages/npm-test-blerg3/test.js test/packages/npm-test-bundled-git/README test/packages/npm-test-bundled-git/minimatch-expected.json test/packages/npm-test-bundled-git/package.json test/packages/npm-test-bundled-git/test.js test/packages/npm-test-dir-bin/README test/packages/npm-test-dir-bin/bin/dir-bin test/packages/npm-test-dir-bin/package.json test/packages/npm-test-dir-bin/test.js test/packages/npm-test-env-reader/README test/packages/npm-test-env-reader/package.json test/packages/npm-test-env-reader/test.js test/packages/npm-test-files/.npmignore test/packages/npm-test-files/README test/packages/npm-test-files/package.json test/packages/npm-test-files/sub/include4 test/packages/npm-test-files/test.sh test/packages/npm-test-ignore-nested-nm/README test/packages/npm-test-ignore-nested-nm/lib/node_modules/foo test/packages/npm-test-ignore-nested-nm/package.json test/packages/npm-test-ignore-nested-nm/test.js test/packages/npm-test-ignore/.npmignore test/packages/npm-test-ignore/README test/packages/npm-test-ignore/package.json test/packages/npm-test-ignore/sub/include4 test/packages/npm-test-ignore/test.sh test/packages/npm-test-missing-bindir/README test/packages/npm-test-missing-bindir/package.json test/packages/npm-test-missing-bindir/test.js test/packages/npm-test-optional-deps/README test/packages/npm-test-optional-deps/package.json test/packages/npm-test-optional-deps/test.js test/packages/npm-test-peer-deps/README test/packages/npm-test-peer-deps/npm-ls.json test/packages/npm-test-peer-deps/package.json test/packages/npm-test-peer-deps/test.js test/packages/npm-test-platform-all/README test/packages/npm-test-platform-all/package.json test/packages/npm-test-platform/README test/packages/npm-test-platform/package.json test/packages/npm-test-private/README test/packages/npm-test-private/package.json test/packages/npm-test-shrinkwrap/README test/packages/npm-test-shrinkwrap/npm-shrinkwrap.json test/packages/npm-test-shrinkwrap/package.json test/packages/npm-test-shrinkwrap/test.js test/packages/npm-test-test-package/README test/packages/npm-test-test-package/package.json test/packages/npm-test-url-dep/README test/packages/npm-test-url-dep/package.json test/run.js test/tap/false_name.js test/tap/false_name/index.js test/tap/false_name/package.json test/tap/fixtures/underscore-1-3-3.json test/tap/fixtures/underscore.json test/tap/ignore-shrinkwrap.js test/tap/ignore-shrinkwrap/npm-shrinkwrap.json test/tap/ignore-shrinkwrap/package.json test/tap/noargs-install-config-save.js test/tap/outdated.js test/tap/outdated/index.js test/tap/outdated/package.json test/tap/package-with-peer-dep/package.json test/tap/peer-deps-invalid.js test/tap/peer-deps-invalid/package.json test/tap/peer-deps-without-package-json.js test/tap/publish-config.js test/update-test.sh Copyright: *No copyright* License: UNKNOWN FIXME Files: lib/completion.js lib/dedupe.js lib/help.js lib/install.js lib/run-script.js lib/utils/tar.js node_modules/init-package-json/node_modules/promzard/test/exports.js node_modules/init-package-json/node_modules/promzard/test/fn.js node_modules/npm-registry-client/node_modules/couch-login/couch-login.js Copyright: License: UNKNOWN FIXME Files: node_modules/chmodr/LICENSE node_modules/npm-registry-client/LICENSE node_modules/npm-registry-client/node_modules/couch-login/LICENSE node_modules/npmconf/LICENSE node_modules/read-installed/LICENSE Copyright: Isaac Z. Schlueter ("Author") License: BSD-2-clause FIXME Files: node_modules/chownr/LICENCE node_modules/fstream-npm/LICENCE node_modules/uid-number/LICENCE Copyright: Isaac Z. Schlueter License: BSD-2-clause FIXME Files: lib/substack.js lib/visnup.js Copyright: npm.commands[c License: UNKNOWN FIXME Files: node_modules/init-package-json/node_modules/promzard/example/npm-init/init-input.js node_modules/init-package-json/node_modules/promzard/example/substack-input.js Copyright: { return c.toLowerCase() }) License: UNKNOWN FIXME Files: node_modules/npm-user-validate/LICENSE Copyright: Robert Kowalski License: BSD-2-clause FIXME Files: node_modules/npmconf/node_modules/config-chain/LICENCE Copyright: 2011, Dominic Tarr License: Expat FIXME Files: node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/LICENSE Copyright: 2009-2011, Isaac Z. Schlueter License: Expat FIXME Files: lib/npm.js Copyright: !== -1) return c License: UNKNOWN FIXME Files: LICENSE Copyright: 2000-2006, The Perl Foundation Isaac Z. Schlueter Tjarda Koster, http://jelloween.deviantart.com allow anyone who receives a copy of the Modified Version to License: UNKNOWN FIXME Files: html/static/style.css Copyright: 2007, Tjarda Koster, http://jelloween.deviantart.com 2007, Tjarda Koster. License: UNKNOWN FIXME Files: node_modules/opener/package.json Copyright: *No copyright* License: WTFPL FIXME Files: node_modules/opener/LICENSE.txt Copyright: 2012, Domenic Denicola License: WTFPL FIXME debian/patches/0000755000000000000000000000000012212734266010622 5ustar debian/patches/2007_do_not_require_cmd-shim.patch0000644000000000000000000000104512212730677017114 0ustar Description: cmd-shim is only needed on win32 Author: Jérémy Lal Forwarded: not-needed, todo: better patch Last-Update: 2013-09-08 --- a/lib/build.js +++ b/lib/build.js @@ -16,8 +16,8 @@ , readJson = require("read-package-json") , link = require("./utils/link.js") , linkIfExists = link.ifExists - , cmdShim = require("cmd-shim") - , cmdShimIfExists = cmdShim.ifExists +// , cmdShim = require("cmd-shim") +// , cmdShimIfExists = cmdShim.ifExists , asyncMap = require("slide").asyncMap module.exports = build debian/patches/2006_rename_node_to_nodejs.patch0000644000000000000000000000647512212657610016643 0ustar Description: Change shell command from node to nodejs. Warn on failure. If a lifecycle script fails, it might be because "node" command was needed. We don't automatically try to fix it, and instead warn the user that might have been the cause, and where to find more information. Forwarded: not-needed Author: Jérémy Lal Last-Update: 2013-04-28 --- a/scripts/index-build.js +++ b/scripts/index-build.js @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/nodejs var fs = require("fs") , path = require("path") , root = path.resolve(__dirname, "..") --- a/scripts/clean-old.sh +++ b/scripts/clean-old.sh @@ -26,7 +26,7 @@ else node="$NODE" if [ "x$node" = "x" ]; then - node=`which node` + node=`which nodejs` fi if [ "x$node" = "x" ]; then echo "Can't find node to determine prefix. Aborting." --- a/scripts/install.sh +++ b/scripts/install.sh @@ -42,7 +42,7 @@ export npm_config_loglevel # make sure that node exists -node=`which node 2>&1` +node=`which nodejs 2>&1` ret=$? if [ $ret -eq 0 ] && [ -x "$node" ]; then (exit 0) --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ # vim: set softtabstop=2 shiftwidth=2: SHELL = bash +node = nodejs markdowns = $(shell find doc -name '*.md' | grep -v 'index') README.md @@ -59,23 +60,23 @@ @echo "Installing latest published npm" @echo "Use 'make install' or 'make link' to install the code" @echo "in this folder that you're looking at right now." - node cli.js install -g -f npm + $(node) cli.js install -g -f npm install: docclean all - node cli.js install -g -f + $(node) cli.js install -g -f # backwards compat dev: install link: uninstall - node cli.js link -f + $(node) cli.js link -f clean: ronnclean doc-clean uninstall rm npmrc - node cli.js cache clean + $(node) cli.js cache clean uninstall: - node cli.js rm npm -g -f + $(node) cli.js rm npm -g -f doc: $(mandocs) $(htmldocs) @@ -114,7 +115,7 @@ scripts/doc-build.sh $< $@ doc/misc/npm-index.md: scripts/index-build.js package.json - node scripts/index-build.js > $@ + $(node) scripts/index-build.js > $@ html/doc/index.html: doc/misc/npm-index.md $(html_docdeps) @[ -d html/doc ] || mkdir -p html/doc @@ -154,14 +155,14 @@ ronn: node_modules/.bin/ronn node_modules/.bin/ronn: - node cli.js install ronn + $(node) cli.js install ronn doc: man man: $(cli_docs) $(api_docs) test: - node cli.js test + $(node) cli.js test publish: link doc @git push origin :v$(shell npm -v) 2>&1 || true --- a/cli.js +++ b/cli.js @@ -1,2 +1,2 @@ -#!/usr/bin/env node +#!/usr/bin/nodejs require("./bin/npm-cli.js") --- a/bin/npm-cli.js +++ b/bin/npm-cli.js @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/nodejs ;(function () { // wrapper in case we're in module_context mode // windows: running "npm blah" in this folder will invoke WSH, not node. --- a/lib/utils/lifecycle.js +++ b/lib/utils/lifecycle.js @@ -165,7 +165,10 @@ er.stage = stage er.script = env.npm_lifecycle_script er.pkgname = pkg.name - return cb(er) + cb(er) + log.warn('', 'This failure might be due to the use of legacy binary "node"') + log.warn("For further explanations, please read\n/usr/share/doc/nodejs/README.Debian\n") + return } else if (er) { log.error(pkg._id+"."+stage, er) log.error(pkg._id+"."+stage, "continuing anyway") debian/patches/2008_do_not_require_child-process-close.patch0000644000000000000000000000064712212731031021246 0ustar Description: child-process-close is not needed with nodejs 0.10.x Author: Jérémy Lal Forwarded: not-needed Last-Update: 2013-09-08 --- a/lib/npm.js +++ b/lib/npm.js @@ -12,7 +12,7 @@ // monkey-patch support for 0.6 child processes -require('child-process-close') +// require('child-process-close') var EventEmitter = require("events").EventEmitter , npm = module.exports = new EventEmitter debian/patches/2002_use_ruby_ronn.patch0000644000000000000000000000730512212661307015177 0ustar Description: Use ruby-ronn to generate documentation Command-line options are different. Perl doesn't need -i switch. Forwarded: not-needed Author: Jérémy Lal Last-Update: 2013-09-7 --- a/scripts/doc-build.sh +++ b/scripts/doc-build.sh @@ -1,37 +1,5 @@ #!/usr/bin/env bash -if [[ $DEBUG != "" ]]; then - set -x -fi -set -o errexit -set -o pipefail - -if ! [ -x node_modules/.bin/ronn ]; then - ps=0 - if [ -f .building_ronn ]; then - pid=$(cat .building_ronn) - ps=$(ps -p $pid | grep $pid | wc -l) || true - fi - - if [ -f .building_ronn ] && [ $ps != 0 ]; then - while [ -f .building_ronn ]; do - sleep 1 - done - else - # a race to see which make process will be the one to install ronn - echo $$ > .building_ronn - sleep 1 - if [ $(cat .building_ronn) == $$ ]; then - make node_modules/.bin/ronn - rm .building_ronn - else - while [ -f .building_ronn ]; do - sleep 1 - done - fi - fi -fi - src=$1 dest=$2 name=$(basename ${src%.*}) @@ -42,34 +10,34 @@ case $dest in *.[1357]) - ./node_modules/.bin/ronn --roff $src \ + cat $src | ronn \ | sed "s|@VERSION@|$version|g" \ - | perl -pi -e 's/(npm\\-)?([^\(]*)\(1\)/npm help \2/g' \ - | perl -pi -e 's/(npm\\-)?([^\(]*)\([57]\)/npm help \3 \2/g' \ - | perl -pi -e 's/(npm\\-)?([^\(]*)\(3\)/npm apihelp \2/g' \ - | perl -pi -e 's/npm\(1\)/npm help npm/g' \ - | perl -pi -e 's/npm\(3\)/npm apihelp npm/g' \ + | perl -p -e 's/(npm\\-)?([^\(]*)\(1\)/npm help \2/g' \ + | perl -p -e 's/(npm\\-)?([^\(]*)\([57]\)/npm help \3 \2/g' \ + | perl -p -e 's/(npm\\-)?([^\(]*)\(3\)/npm apihelp \2/g' \ + | perl -p -e 's/npm\(1\)/npm help npm/g' \ + | perl -p -e 's/npm\(3\)/npm apihelp npm/g' \ > $dest exit $? ;; *.html) (cat html/dochead.html && \ - ./node_modules/.bin/ronn -f $src && + cat $src | ronn --fragment && \ cat html/docfoot.html)\ | sed "s|@NAME@|$name|g" \ | sed "s|@DATE@|$date|g" \ | sed "s|@VERSION@|$version|g" \ - | perl -pi -e 's/

([^\(]*\([0-9]\)) -- (.*?)<\/h1>/

\1<\/h1>

\2<\/p>/g' \ - | perl -pi -e 's/npm-npm/npm/g' \ - | perl -pi -e 's/([^"-])(npm-)?README(\(1\))?/\1README<\/a>/g' \ - | perl -pi -e 's/<a href="[^"]+README.html">README<\/a><\/title>/<title>README<\/title>/g' \ - | perl -pi -e 's/([^"-])([^\(> ]+)(\(1\))/\1<a href="..\/cli\/\2.html">\2\3<\/a>/g' \ - | perl -pi -e 's/([^"-])([^\(> ]+)(\(3\))/\1<a href="..\/api\/\2.html">\2\3<\/a>/g' \ - | perl -pi -e 's/([^"-])([^\(> ]+)(\(5\))/\1<a href="..\/files\/\2.html">\2\3<\/a>/g' \ - | perl -pi -e 's/([^"-])([^\(> ]+)(\(7\))/\1<a href="..\/misc\/\2.html">\2\3<\/a>/g' \ - | perl -pi -e 's/\([1357]\)<\/a><\/h1>/<\/a><\/h1>/g' \ + | perl -p -e 's/<h1>([^\(]*\([0-9]\)) -- (.*?)<\/h1>/<h1>\1<\/h1> <p>\2<\/p>/g' \ + | perl -p -e 's/npm-npm/npm/g' \ + | perl -p -e 's/([^"-])(npm-)?README(\(1\))?/\1<a href="..\/..\/doc\/README.html">README<\/a>/g' \ + | perl -p -e 's/<title><a href="[^"]+README.html">README<\/a><\/title>/<title>README<\/title>/g' \ + | perl -p -e 's/([^"-])([^\(> ]+)(\(1\))/\1<a href="..\/cli\/\2.html">\2\3<\/a>/g' \ + | perl -p -e 's/([^"-])([^\(> ]+)(\(3\))/\1<a href="..\/api\/\2.html">\2\3<\/a>/g' \ + | perl -p -e 's/([^"-])([^\(> ]+)(\(5\))/\1<a href="..\/files\/\2.html">\2\3<\/a>/g' \ + | perl -p -e 's/([^"-])([^\(> ]+)(\(7\))/\1<a href="..\/misc\/\2.html">\2\3<\/a>/g' \ + | perl -p -e 's/\([1357]\)<\/a><\/h1>/<\/a><\/h1>/g' \ | (if [ $(basename $(dirname $dest)) == "doc" ]; then - perl -pi -e 's/ href="\.\.\// href="/g' + perl -p -e 's/ href="\.\.\// href="/g' else cat fi) \ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/patches/2001_unicode_in_md.patch�������������������������������������������������������������0000644�0000000�0000000�00000001142�12212734266�015077� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Description: keep md files ascii It is simpler to generate documentation if only ascii is needed, otherwise `ronn` requires to install some UTF8 locale. Author: Jérémy Lal <kapouer@melix.org> Forwarded: not-needed Last-Update: 2013-09-08 --- a/doc/cli/npm-ls.md +++ b/doc/cli/npm-ls.md @@ -19,8 +19,8 @@ For example, running `npm ls promzard` in npm's source tree will show: npm@@VERSION@ /path/to/npm - └─┬ init-package-json@0.0.4 - └── promzard@0.1.5 + |-- init-package-json@0.0.4 + |-- promzard@0.1.5 It will print out extraneous, missing, and invalid packages. ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/patches/2004_remove_shebang.patch������������������������������������������������������������0000644�0000000�0000000�00000000445�12124570026�015271� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Description: remove shebang from completion script Forwarded: not-needed Author: Jérémy Lal <kapouer@melix.org> Last-Update: 2012-04-07 --- a/lib/utils/completion.sh +++ b/lib/utils/completion.sh @@ -1,4 +1,3 @@ -#!/bin/bash ###-begin-npm-completion-### # # npm command completion script ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/patches/2003_fix_doc.patch�������������������������������������������������������������������0000644�0000000�0000000�00000000627�12212657332�013725� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Description: ruby-ronn does not handle h4 Forwarded: not-needed Author: Jérémy Lal <kapouer@melix.org> Last-Update: 2012-04-07 --- a/doc/files/npm-folders.md +++ b/doc/files/npm-folders.md @@ -135,7 +135,7 @@ Another optimization can be made by installing dependencies at the highest level possible, below the localized "target" folder. -#### Example +### Example Consider this dependency graph: ���������������������������������������������������������������������������������������������������������debian/patches/series�������������������������������������������������������������������������������0000644�0000000�0000000�00000000365�12212733726�012043� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������2001_unicode_in_md.patch 2002_use_ruby_ronn.patch 2003_fix_doc.patch 2004_remove_shebang.patch 2005_index_build_dont_run_npm.patch 2006_rename_node_to_nodejs.patch 2007_do_not_require_cmd-shim.patch 2008_do_not_require_child-process-close.patch ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/patches/2005_index_build_dont_run_npm.patch��������������������������������������������������0000644�0000000�0000000�00000000754�12212727047�017366� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Description: Do not run cli.js as it depends on many packages. Get the version from package.json instead. Forwarded: https://github.com/isaacs/npm/pull/3873 Author: Jérémy Lal <kapouer@melix.org> Last-Update: 2013-09-08 --- a/scripts/doc-build.sh +++ b/scripts/doc-build.sh @@ -4,7 +4,7 @@ dest=$2 name=$(basename ${src%.*}) date=$(date -u +'%Y-%M-%d %H:%m:%S') -version=$(node cli.js -v) +version=$(nodejs -e "console.log(require('./package').version)") mkdir -p $(dirname $dest) ��������������������debian/doc-base.cli���������������������������������������������������������������������������������0000644�0000000�0000000�00000000362�12212724756�011345� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Document: npm Title: Npm command-line documentation Author: Isaac Z. Schlueter Abstract: This describes command-line usage of npm. Section: Programming Format: HTML Index: /usr/share/doc/npm/cli/npm.html Files: /usr/share/doc/npm/cli/*.html ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/doc-base.api���������������������������������������������������������������������������������0000644�0000000�0000000�00000000341�12124570026�011333� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Document: npm-api Title: Npm API documentation Author: Isaac Z. Schlueter Abstract: This describes the API of npm. Section: Programming Format: HTML Index: /usr/share/doc/npm/api/npm.html Files: /usr/share/doc/npm/api/*.html�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/docs�����������������������������������������������������������������������������������������0000644�0000000�0000000�00000000013�12212716573�010041� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������html/doc/* ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/README.Debian��������������������������������������������������������������������������������0000644�0000000�0000000�00000002214�12207653015�011227� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������npm for Debian ============== nodejs Debian package provides /usr/bin/nodejs ---------------------------------------------- Modules installed by npm can ship executables. These executables depend on /usr/bin/node, which is provided by the nodejs-legacy Debian package. More information: /usr/share/doc/nodejs/README.Debian global mode npm --------------- When run in global mode, npm is configured like this : prefix=/usr/local globalconfig=/etc/npmrc globalignorefile=/etc/npmignore That means npm -g install mymodule will be installed in : /usr/local/lib/node_modules/ If mymodule installs executables, they go to : /usr/local/bin And man pages to /usr/local/share/man Please read npm-config(1), npm-folders(1) and npm-link(1) man pages. This global configuration is kept across a global self update of npm. It is not guaranteed it will stay like this, so it's safer to update npm debian package instead. do not confuse with /usr/lib/nodejs ----------------------------------- /usr/lib/nodejs directory is reserved for modules that are provided by a debian package. -- Jérémy Lal <kapouer@melix.org> Fri, 28 Jan 2011 00:33:28 +0200 ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/control.in�����������������������������������������������������������������������������������0000644�0000000�0000000�00000003055�12212732362�011201� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Source: npm Section: web Priority: extra Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Uploaders: Jérémy Lal <kapouer@melix.org>, Jonas Smedegaard <dr@jones.dk> Build-Depends: @cdbs@, bash-completion, nodejs, node-glob, ruby-ronn Standards-Version: 3.9.4 Homepage: http://github.com/isaacs/npm Vcs-Git: git://anonscm.debian.org/collab-maint/npm.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/npm.git Package: npm Architecture: all Depends: nodejs, ${misc:Depends}, node-abbrev (>= 1.0.4), node-ansi, node-archy, node-block-stream, node-fstream (>= 0.1.22), node-fstream-ignore, node-github-url-from-git, node-glob (>= 3.1.21), node-graceful-fs (>= 2.0.0), node-inherits, node-ini (>= 1.1.0), node-lockfile, node-lru-cache (>= 2.3.0), node-minimatch (>= 0.2.11), node-mkdirp (>= 0.3.3), node-gyp (>= 0.10.9), node-nopt (>= 2.1.1), node-npmlog, node-once, node-osenv, node-read, node-read-package-json (>= 1.1.0), node-request (>= 2.25.0), node-retry, node-rimraf (>= 2.2.2), node-semver (>= 2.1.0), node-sha, node-slide, node-tar (>= 0.1.18), node-which Description: package manager for Node.js Node.js is an event-based server-side javascript engine. . npm is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency conflicts intelligently. . It is extremely configurable to support a wide variety of use cases. Most commonly, it is used to publish, discover, install, and develop node programs. �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/NEWS�����������������������������������������������������������������������������������������0000644�0000000�0000000�00000000641�12124570026�007665� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������npm (1.1.4~dfsg-1) unstable; urgency=low This release of npm does not support previous modules layouts. Modules are now installed in ./node_modules when used in the default local mode. More information can be found in the nodejs Modules documentation, /usr/share/doc/npm/README.Debian, and npm-folders(1) and npm-link(1) man pages. -- Jérémy Lal <kapouer@melix.org> Tue, 25 Oct 2011 15:19:32 +0200 �����������������������������������������������������������������������������������������������debian/doc-base.misc��������������������������������������������������������������������������������0000644�0000000�0000000�00000000513�12212724117�011516� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Document: npm-misc Title: Npm miscellaneous documentation Author: Isaac Z. Schlueter Abstract: Various aspects of npm: coding-style, config, developers, disputes, faq, index, registry, scripts, removal, semver. Section: Programming Format: HTML Index: /usr/share/doc/npm/misc/npm-index.html Files: /usr/share/doc/npm/misc/*.html �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/manpages�������������������������������������������������������������������������������������0000644�0000000�0000000�00000000064�12212720145�010700� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������man/man1/*.1 man/man3/*.3 man/man5/*.5 man/man7/*.7 ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/README.source��������������������������������������������������������������������������������0000644�0000000�0000000�00000001255�12137052510�011344� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������git-buildpackage ================ CDBS+git-buildpackage --------------------- This source package uses CDBS and git-buildpackage. NMUs need not (but are encouraged to) make special use of these tools. In particular, the debian/control.in file can be completely ignored. More info here: http://wiki.debian.org/CDBS+git-buildpackage symlinks to man pages --------------------- npm searches for man pages in ./man/man1/*.1, and that is why symlinks are there : /usr/share/man/man1/npm-xxx.1.gz -> /usr/share/npm/man/man1/xxx.1 npm does not search for man pages with .gz extension, so we get : E: npm: compressed-symlink-with-wrong-ext This is just to avoid having to patch npm. ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/watch����������������������������������������������������������������������������������������0000644�0000000�0000000�00000000254�12136744774�010237� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������version=3 opts=filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/npm-$1.tar.gz/,dversionmangle=s/~dfsg[\d]*$// \ https://github.com/isaacs/npm/tags .*/archive/v?([\d\.]+).tar.gz ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/npmrc����������������������������������������������������������������������������������������0000644�0000000�0000000�00000000177�12124570026�010234� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# DO NOT MODIFY THIS FILE - use /etc/npmrc instead. globalconfig=/etc/npmrc globalignorefile=/etc/npmignore prefix=/usr/local �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/control��������������������������������������������������������������������������������������0000644�0000000�0000000�00000003106�12212732377�010577� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Source: npm Section: web Priority: extra Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Uploaders: Jérémy Lal <kapouer@melix.org>, Jonas Smedegaard <dr@jones.dk> Build-Depends: cdbs, debhelper, dh-buildinfo, bash-completion, nodejs, node-glob, ruby-ronn Standards-Version: 3.9.4 Homepage: http://github.com/isaacs/npm Vcs-Git: git://anonscm.debian.org/collab-maint/npm.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/npm.git Package: npm Architecture: all Depends: nodejs, ${misc:Depends}, node-abbrev (>= 1.0.4), node-ansi, node-archy, node-block-stream, node-fstream (>= 0.1.22), node-fstream-ignore, node-github-url-from-git, node-glob (>= 3.1.21), node-graceful-fs (>= 2.0.0), node-inherits, node-ini (>= 1.1.0), node-lockfile, node-lru-cache (>= 2.3.0), node-minimatch (>= 0.2.11), node-mkdirp (>= 0.3.3), node-gyp (>= 0.10.9), node-nopt (>= 2.1.1), node-npmlog, node-once, node-osenv, node-read, node-read-package-json (>= 1.1.0), node-request (>= 2.25.0), node-retry, node-rimraf (>= 2.2.2), node-semver (>= 2.1.0), node-sha, node-slide, node-tar (>= 0.1.18), node-which Description: package manager for Node.js Node.js is an event-based server-side javascript engine. . npm is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency conflicts intelligently. . It is extremely configurable to support a wide variety of use cases. Most commonly, it is used to publish, discover, install, and develop node programs. ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/TODO�����������������������������������������������������������������������������������������0000644�0000000�0000000�00000000206�12137245240�007654� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������* Generate html and man pages from ronnjs. Exclude them too. + nodejs >= 0.6.12 ships node-marked. Check if npm will use that tool. ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/gbp.conf�������������������������������������������������������������������������������������0000644�0000000�0000000�00000000060�12124570026�010600� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������[DEFAULT] pristine-tar = True sign-tags = True ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/copyright������������������������������������������������������������������������������������0000644�0000000�0000000�00000034257�12212652170�011132� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: npm Upstream-Contact: https://github.com/isaacs/npm/issues Source: http://github.com/isaacs/npm Repackaged, excluding non-DFSG font files. Many external modules are available as debian packages so are removed. Other modules are kept because they are not interesting to package. Files-Excluded: html/static/webfonts/23242D_3_0.* node_modules/abbrev/* node_modules/ansi/* node_modules/archy/* node_modules/block-stream/* node_modules/child-process-close/* node_modules/cmd-shim/* node_modules/fstream/* node_modules/fstream-npm/node_modules/fstream-ignore/* node_modules/github-url-from-git/* node_modules/glob/* node_modules/graceful-fs/* node_modules/inherits/* node_modules/ini/* node_modules/lockfile/* node_modules/lru-cache/* node_modules/minimatch/* node_modules/mkdirp/* node_modules/node-gyp/* node_modules/nopt/* node_modules/npmlog/* node_modules/once/* node_modules/osenv/* node_modules/read/* node_modules/read-package-json/* node_modules/request/* node_modules/retry/* node_modules/rimraf/* node_modules/semver/* node_modules/sha/* node_modules/slide/* node_modules/tar/* node_modules/which/* Files: * Copyright: 2009-2013, Isaac Z. Schlueter License: Artistic-2.0 Files: node_modules/chmodr/* node_modules/chownr/* node_modules/fstream-npm/* node_modules/init-package-json/node_modules/promzard/* node_modules/init-package-json/* node_modules/npmconf/* node_modules/npm-registry-client/node_modules/couch-login/* node_modules/npm-registry-client/* node_modules/read-installed/* node_modules/uid-number/* Copyright: 2009-2013, Isaac Z. Schlueter License: BSD-2-clause Comment: promzard license has been added upstream https://github.com/isaacs/promzard/blob/master/LICENSE Files: node_modules/npmconf/node_modules/config-chain/* Copyright: 2011 Dominic Tarr License: Expat Files: node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/* Copyright: 2009-2011, Isaac Z. Schlueter License: Expat Files: node_modules/npm-user-validate/* Copyright: 2013 Robert Kowalski <rok@kowalski.gd> License: BSD-2-clause Files: node_modules/editor/* Copyright: James Halliday <mail@substack.net> License: Expat Comment: license has been added upstream https://github.com/substack/node-editor/blob/master/LICENSE with some confusion in the name of the license https://github.com/substack/node-editor/pull/7 Files: node_modules/opener/* Copyright: 2012 Domenic Denicola <domenic@domenicdenicola.com> License: WTFPL2 License: Artistic-2.0 The Artistic License 2.0 . Copyright (c) 2000-2006, The Perl Foundation. . Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. . Preamble . This license establishes the terms under which a given free software Package may be copied, modified, distributed, and/or redistributed. The intent is that the Copyright Holder maintains some artistic control over the development of that Package while still keeping the Package available as open source and free software. . You are always permitted to make arrangements wholly outside of this license directly with the Copyright Holder of a given Package. If the terms of this license do not permit the full use that you propose to make of the Package, you should contact the Copyright Holder and seek a different licensing arrangement. . Definitions . "Copyright Holder" means the individual(s) or organization(s) named in the copyright notice for the entire Package. . "Contributor" means any party that has contributed code or other material to the Package, in accordance with the Copyright Holder's procedures. . "You" and "your" means any person who would like to copy, distribute, or modify the Package. . "Package" means the collection of files distributed by the Copyright Holder, and derivatives of that collection and/or of those files. A given Package may consist of either the Standard Version, or a Modified Version. . "Distribute" means providing a copy of the Package or making it accessible to anyone else, or in the case of a company or organization, to others outside of your company or organization. . "Distributor Fee" means any fee that you charge for Distributing this Package or providing support for this Package to another party. It does not mean licensing fees. . "Standard Version" refers to the Package if it has not been modified, or has been modified only in ways explicitly requested by the Copyright Holder. . "Modified Version" means the Package, if it has been changed, and such changes were not explicitly requested by the Copyright Holder. . "Original License" means this Artistic License as Distributed with the Standard Version of the Package, in its current version or as it may be modified by The Perl Foundation in the future. . "Source" form means the source code, documentation source, and configuration files for the Package. . "Compiled" form means the compiled bytecode, object code, binary, or any other form resulting from mechanical transformation or translation of the Source form. . . Permission for Use and Modification Without Distribution . (1) You are permitted to use the Standard Version and create and use Modified Versions for any purpose without restriction, provided that you do not Distribute the Modified Version. . . Permissions for Redistribution of the Standard Version . (2) You may Distribute verbatim copies of the Source form of the Standard Version of this Package in any medium without restriction, either gratis or for a Distributor Fee, provided that you duplicate all of the original copyright notices and associated disclaimers. At your discretion, such verbatim copies may or may not include a Compiled form of the Package. . (3) You may apply any bug fixes, portability changes, and other modifications made available from the Copyright Holder. The resulting Package will still be considered the Standard Version, and as such will be subject to the Original License. . . Distribution of Modified Versions of the Package as Source . (4) You may Distribute your Modified Version as Source (either gratis or for a Distributor Fee, and with or without a Compiled form of the Modified Version) provided that you clearly document how it differs from the Standard Version, including, but not limited to, documenting any non-standard features, executables, or modules, and provided that you do at least ONE of the following: . (a) make the Modified Version available to the Copyright Holder of the Standard Version, under the Original License, so that the Copyright Holder may include your modifications in the Standard Version. . (b) ensure that installation of your Modified Version does not prevent the user installing or running the Standard Version. In addition, the Modified Version must bear a name that is different from the name of the Standard Version. . (c) allow anyone who receives a copy of the Modified Version to make the Source form of the Modified Version available to others under . (i) the Original License or . (ii) a license that permits the licensee to freely copy, modify and redistribute the Modified Version using the same licensing terms that apply to the copy that the licensee received, and requires that the Source form of the Modified Version, and of any works derived from it, be made freely available in that license fees are prohibited but Distributor Fees are allowed. . . Distribution of Compiled Forms of the Standard Version or Modified Versions without the Source . (5) You may Distribute Compiled forms of the Standard Version without the Source, provided that you include complete instructions on how to get the Source of the Standard Version. Such instructions must be valid at the time of your distribution. If these instructions, at any time while you are carrying out such distribution, become invalid, you must provide new instructions on demand or cease further distribution. If you provide valid instructions or cease distribution within thirty days after you become aware that the instructions are invalid, then you do not forfeit any of your rights under this license. . (6) You may Distribute a Modified Version in Compiled form without the Source, provided that you comply with Section 4 with respect to the Source of the Modified Version. . . Aggregating or Linking the Package . (7) You may aggregate the Package (either the Standard Version or Modified Version) with other packages and Distribute the resulting aggregation provided that you do not charge a licensing fee for the Package. Distributor Fees are permitted, and licensing fees for other components in the aggregation are permitted. The terms of this license apply to the use and Distribution of the Standard or Modified Versions as included in the aggregation. . (8) You are permitted to link Modified and Standard Versions with other works, to embed the Package in a larger work of your own, or to build stand-alone binary or bytecode versions of applications that include the Package, and Distribute the result without restriction, provided the result does not expose a direct interface to the Package. . . Items That are Not Considered Part of a Modified Version . (9) Works (including, but not limited to, modules and scripts) that merely extend or make use of the Package, do not, by themselves, cause the Package to be a Modified Version. In addition, such works are not considered parts of the Package itself, and are not subject to the terms of this license. . . General Provisions . (10) Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license. . (11) If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license. . (12) This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder. . (13) This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed. . (14) Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: WTFPL2 DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. . DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION . 0. You just DO WHAT THE FUCK YOU WANT TO. �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/links����������������������������������������������������������������������������������������0000644�0000000�0000000�00000000155�12212716275�010237� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/usr/share/npm/bin/npm-cli.js usr/bin/npm /usr/share/npm usr/lib/nodejs/npm /usr/share/man usr/share/npm/man �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/install��������������������������������������������������������������������������������������0000644�0000000�0000000�00000000354�12137232166�010564� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������lib/*.js usr/share/npm/lib lib/utils/*.js usr/share/npm/lib/utils lib/utils/completion usr/share/npm/lib/utils bin/*.js usr/share/npm/bin package.json usr/share/npm node_modules usr/share/npm debian/npmrc usr/share/npm doc usr/share/npm������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/source/��������������������������������������������������������������������������������������0000755�0000000�0000000�00000000000�12124570026�010465� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/source/format��������������������������������������������������������������������������������0000644�0000000�0000000�00000000014�12124570026�011673� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������3.0 (quilt) ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/compat���������������������������������������������������������������������������������������0000644�0000000�0000000�00000000002�12124570026�010363� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������7 ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/rules����������������������������������������������������������������������������������������0000755�0000000�0000000�00000005156�12212731662�010257� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. # export DH_VERBOSE=1 -include /usr/share/cdbs/1/rules/upstream-tarball.mk include /usr/share/cdbs/1/rules/utils.mk include /usr/share/cdbs/1/rules/debhelper.mk # suppress optional build-dependencies CDBS_BUILD_DEPENDS_rules_upstream-tarball = CDBS_BUILD_DEPENDS_rules_utils_copyright-check = DEB_UPSTREAM_URL = https://github.com/isaacs/npm/archive DEB_UPSTREAM_TARBALL_BASENAME = v$(DEB_UPSTREAM_TARBALL_VERSION).tar.gz DEB_UPSTREAM_TARBALL_DELIMITER = DEB_UPSTREAM_TARBALL_EXTENSION = DEB_UPSTREAM_RECEIVED_EXTENSION = tar.gz DEB_UPSTREAM_TARBALL_SRCDIR = npm-$(DEB_UPSTREAM_TARBALL_VERSION) DEB_UPSTREAM_WGET_OPTS += --no-check-certificate DEB_UPSTREAM_REPACKAGE_EXCLUDES += \ ./html/static/webfonts/23242D_3_0.* \ ./node_modules/abbrev/ \ ./node_modules/ansi/ \ ./node_modules/archy/ \ ./node_modules/block-stream/ \ ./node_modules/child-process-close/ \ ./node_modules/cmd-shim/ \ ./node_modules/fstream/ \ ./node_modules/fstream-npm/node_modules/fstream-ignore/ \ ./node_modules/github-url-from-git/ \ ./node_modules/glob/ \ ./node_modules/graceful-fs/ \ ./node_modules/inherits/ \ ./node_modules/ini/ \ ./node_modules/lockfile/ \ ./node_modules/lru-cache/ \ ./node_modules/minimatch/ \ ./node_modules/mkdirp/ \ ./node_modules/node-gyp/ \ ./node_modules/nopt/ \ ./node_modules/npmlog/ \ ./node_modules/once/ \ ./node_modules/osenv/ \ ./node_modules/read/ \ ./node_modules/read-package-json/ \ ./node_modules/request/ \ ./node_modules/retry/ \ ./node_modules/rimraf/ \ ./node_modules/semver/ \ ./node_modules/sha/ \ ./node_modules/slide/ \ ./node_modules/tar/ \ ./node_modules/which/ DEB_UPSTREAM_REPACKAGE_TAG = $(shell echo $(DEB_UPSTREAM_VERSION) | egrep -o "dfsg[0-9]*") # Suppress copyright-checking some binaries to not upset dpkg-source DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^(html/npm.*\.png|html/favicon\.ico|html/n-.*\.png|debian/(changelog|copyright(|_hints|_newhints))|node_modules/npm-registry-client/node_modules/couch-login/test/fixtures/registry\.couch)$ clean:: make docclean build/npm:: make doc install/npm:: dh_bash-completion # Fix permissions # Remove LICENSE files. binary-post-install/npm:: chmod a-x debian/npm/usr/share/npm/bin/read-package-json.js chmod a-x debian/npm/usr/share/npm/node_modules/uid-number/get-uid-gid.js chmod a-x debian/npm/usr/share/npm/node_modules/npmconf/node_modules/config-chain/index.js sed -i -e "s|#!/usr/bin/env node|#!/usr/bin/nodejs|" debian/npm/usr/share/npm/node_modules/opener/opener.js find debian/npm -name LICENSE -delete find debian/npm -name LICENCE -delete find debian/npm -name LICENSE.txt -delete ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/clean����������������������������������������������������������������������������������������0000644�0000000�0000000�00000000026�12212722310�010161� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������doc/misc/npm-index.md ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/changelog������������������������������������������������������������������������������������0000644�0000000�0000000�00000013546�12212734533�011053� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������npm (1.3.10~dfsg-1) unstable; urgency=low * New upstream release. * Standards-Version 3.9.4 * Update README.Debian with info about nodejs-legacy (Closes:#650345) * copyright: + switch npm to Artistic-2.0 + add sections for editor and npm-user-validate + drop debian/* section + update list of excluded files * control: + loosen (build-)dependency on nodejs + Build-Depends on node-glob + depend on node-github-url-from-git, node-sha, and exclude them from tarball + bump versions of node-graceful-fs, node-gyp, node-read-package-json, node-request, node-rimraf, node-semver, node-tar * patches: + remove 2007 patch for compatibility with nodejs 0.6 + remove 2001 patch, not needed with the new license + enhance 2005 path and forward it upstream + add patches to avoid dependency on cmd-shim and child-process-close modules + add 2001 patch to keep documentation buildable by ronn without unicode support * docs: new sections, simplify manpages install -- Jérémy Lal <kapouer@melix.org> Sun, 08 Sep 2013 01:40:11 +0200 npm (1.2.18~dfsg-3) experimental; urgency=low * Add missing dependency on node-fstream-ignore. -- Jérémy Lal <kapouer@melix.org> Tue, 30 Apr 2013 00:28:32 +0200 npm (1.2.18~dfsg-2) experimental; urgency=low * Try to keep compatibility with nodejs 0.6 in debian/patches/2007_nodejs_0_6_compat.patch. -- Jérémy Lal <kapouer@melix.org> Mon, 29 Apr 2013 00:13:30 +0200 npm (1.2.18~dfsg-1) experimental; urgency=low * New upstream release. (Closes: #695821, #705236) * debian/patches: + refresh + remove upstream patches. * debian/control: + update dependencies on external node-* modules + tighten dependencies on modules that are available in unstable and experimental, only when required by npm package.json. + remove DMUA field. + no longer Suggests: build-essential, since building is handled by node-gyp, not directly by npm. * debian/copyright: + update sections to match required modules, + update the list of excluded files, + comment why some modules are kept inside npm * debian/watch: fix again. -- Jérémy Lal <kapouer@melix.org> Sun, 28 Apr 2013 21:03:50 +0200 npm (1.1.4~dfsg-2) unstable; urgency=low [ Jérémy Lal ] * debian/patches: + 1002_only_use_numeric_UIDs_and_GIDs_in_spawn.patch Upstream commit. Closes: #687052. + 2006_rename_node_to_nodejs.patch : apart from trivial rename of node to nodejs in shebangs and makefile, print a warning and refer to nodejs README on failure of a package lifecycle script. Closes: #686894. * debian/control: + Tighten nodejs version to the one after the rename. + Suggests: build-essential. Closes: #681356. [ Jonas Smedegaard ] * Directly use github.com (not broken githubredir.debian.net). * Allow Debian-Maintainer uploads. -- Jonas Smedegaard <dr@jones.dk> Sat, 22 Sep 2012 00:19:00 +0200 npm (1.1.4~dfsg-1) unstable; urgency=low * New upstream release. [ Jérémy Lal ] * Get the source from github repository. * Update package relations: + Relax to build-depend unversioned on cdbs and debhelper, and to depend unversioned on nodejs and O-dev: Required versions satisfied even in oldstable. + Build-depend on nodejs and ruby-ronn. + Depend on node-node-uuid, node-request, node-mkdirp, node-minimatch, node-semver, node-ini, node-graceful-fs, node-abbrev, node-nopt, node-fstream, node-rimraf, node-tar, node-which: Modules bundled with npm upstream yet sensible to reuse by other projects are packaged separately for Debian (exceptions are proto-list, read and slide). * Update copyright: + license changed to Expat+no-false-attribs, discussed at : http://lists.debian.org/debian-legal/2012/03/msg00030.html + Extend copyright year of debian/* section. + Added sections for the included modules. + Explain Source is repackaged. + Added (non-official) Files-Excluded paragraph in header. * DFSG repackaging (using cdbs upstream-tarball.mk), remove : + non-free html/*/GubbleBum-Blocky.ttf + all modules that are dependencies. * Patches : + Drop patches for missing shebangs, applied upstream. + Remove shebang from completion.sh as it is non-executable. + Drop patch to fix completion, no longer needed. + Comply with license: replace Original Author's bug reporting email address and url with information on how to report debian bugs. + Use ruby-ronn instead of ronnjs to build documentation. + Small documentation fixes. * npm configuration has moved from /etc/npm/rootrc, /etc/npm/userrc to /etc/npmrc. * npm is also installed as a node module, so has man(3) documentation. * Documentation installation: + Fix gz extension, override lintian errors. + Install and register html with doc-base. * Use githubredir for watch file. * README.Debian updated. * Use anonscm.d.o in control Vcs-* fields. * Bump policy compliance to standards-version 3.9.3. [ Jonas Smedegaard ] * Update copyright file: + Stop listing convenience copy of uuid.js: no longer included. + Extend a copyright year. + Abbreviate author middle name (to match upstream change). + Add Upstream-Name field. * Git-ignore .pc quilt subdir. -- Jonas Smedegaard <dr@jones.dk> Sat, 07 Apr 2012 10:16:32 +0200 npm (0.2.19-1) unstable; urgency=low * New upstream release. [ Jonas Smedegaard ] * Bump policy compliance to standards-version 3.9.2. * Bump copyright file format to draft 174 of DEP-5. * Replace long description with intro from upstream documentation. -- Jonas Smedegaard <dr@jones.dk> Sat, 16 Apr 2011 11:32:28 +0200 npm (0.2.16-1) unstable; urgency=low [ Jérémy Lal ] * Initial release. Closes: #587525. -- Jonas Smedegaard <dr@jones.dk> Sat, 29 Jan 2011 15:03:31 +0100 ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������