Permalink
Browse files

Put .js on filenames

  • Loading branch information...
1 parent 9c0b248 commit 645cef3e775a4fee225c7921c96367c11cf1139c @isaacs isaacs committed Aug 6, 2011
Showing with 286 additions and 284 deletions.
  1. +6 −6 lib/adduser.js
  2. +2 −2 lib/bin.js
  3. +6 −6 lib/build.js
  4. +13 −13 lib/cache.js
  5. +3 −3 lib/completion.js
  6. +7 −7 lib/config.js
  7. +3 −3 lib/deprecate.js
  8. +5 −4 lib/docs.js
  9. +4 −4 lib/edit.js
  10. +3 −3 lib/explore.js
  11. +1 −1 lib/faq.js
  12. +1 −1 lib/get.js
  13. +3 −3 lib/help-search.js
  14. +3 −3 lib/help.js
  15. +7 −7 lib/init.js
  16. +9 −9 lib/install.js
  17. +8 −8 lib/link.js
  18. +5 −5 lib/ls.js
  19. +7 −7 lib/outdated.js
  20. +5 −5 lib/owner.js
  21. +5 −5 lib/pack.js
  22. +2 −2 lib/prefix.js
  23. +3 −3 lib/prune.js
  24. +8 −8 lib/publish.js
  25. +5 −5 lib/rebuild.js
  26. +1 −1 lib/restart.js
  27. +3 −3 lib/root.js
  28. +5 −5 lib/run-script.js
  29. +4 −4 lib/search.js
  30. +1 −1 lib/set.js
  31. +1 −1 lib/start.js
  32. +1 −1 lib/stop.js
  33. +6 −6 lib/submodule.js
  34. +3 −3 lib/tag.js
  35. +1 −1 lib/test.js
  36. +6 −6 lib/unbuild.js
  37. +5 −5 lib/uninstall.js
  38. +4 −4 lib/unpublish.js
  39. +3 −3 lib/update.js
  40. +2 −2 lib/utils/completion/file-completion.js
  41. +2 −2 lib/utils/completion/installed-deep.js
  42. +2 −2 lib/utils/completion/installed-shallow.js
  43. +3 −3 lib/utils/completion/remote-packages.js
  44. +4 −4 lib/utils/completion/users.js
  45. +1 −1 lib/utils/config-defs.js
  46. +3 −3 lib/utils/error-handler.js
  47. +2 −2 lib/utils/excludes.js
  48. +2 −2 lib/utils/exec.js
  49. +7 −7 lib/utils/fetch.js
  50. +1 −1 lib/utils/find-prefix.js
  51. +5 −5 lib/utils/ini.js
  52. +6 −6 lib/utils/lifecycle.js
  53. +5 −5 lib/utils/link.js
  54. +3 −3 lib/utils/load-package-defaults.js
  55. +3 −3 lib/utils/log.js
  56. +4 −4 lib/utils/mkdir-p.js
  57. +4 −4 lib/utils/npm-registry-client/adduser.js
  58. +4 −4 lib/utils/npm-registry-client/get.js
  59. +1 −1 lib/utils/npm-registry-client/index.js
  60. +3 −3 lib/utils/npm-registry-client/publish.js
  61. +5 −5 lib/utils/npm-registry-client/request.js
  62. +1 −1 lib/utils/npm-registry-client/tag.js
  63. +3 −3 lib/utils/npm-registry-client/unpublish.js
  64. +1 −1 lib/utils/output.js
  65. +1 −1 lib/utils/prompt.js
  66. +3 −3 lib/utils/read-installed.js
  67. +3 −3 lib/utils/read-json.js
  68. +1 −1 lib/utils/rm-rf.js
  69. +2 −2 lib/utils/set.js
  70. +1 −1 lib/utils/sha.js
  71. +11 −11 lib/utils/tar.js
  72. +3 −3 lib/utils/uid-number.js
  73. +4 −4 lib/version.js
  74. +6 −6 lib/view.js
  75. +3 −3 lib/whoami.js
  76. +3 −2 lib/xmas.js
View
@@ -1,12 +1,12 @@
module.exports = adduser
-var registry = require('./utils/npm-registry-client')
- , ini = require("./utils/ini")
- , log = require("./utils/log")
- , npm = require("../npm")
- , prompt = require("./utils/prompt")
- , promiseChain = require("./utils/promise-chain")
+var registry = require("./utils/npm-registry-client/index.js")
+ , ini = require("./utils/ini.js")
+ , log = require("./utils/log.js")
+ , npm = require("../npm.js")
+ , prompt = require("./utils/prompt.js")
+ , promiseChain = require("./utils/promise-chain.js")
, crypto
try {
View
@@ -1,7 +1,7 @@
module.exports = bin
-var npm = require("../npm")
- , output = require("./utils/output")
+var npm = require("../npm.js")
+ , output = require("./utils/output.js")
bin.usage = "npm bin\nnpm bin -g\n(just prints the bin folder)"
View
@@ -8,17 +8,17 @@
// This runs AFTER install or link are completed.
-var npm = require("../npm")
- , log = require("./utils/log")
+var npm = require("../npm.js")
+ , log = require("./utils/log.js")
, chain = require("slide").chain
, fs = require("graceful-fs")
, path = require("path")
- , lifecycle = require("./utils/lifecycle")
- , readJson = require("./utils/read-json")
- , link = require("./utils/link")
+ , lifecycle = require("./utils/lifecycle.js")
+ , readJson = require("./utils/read-json.js")
+ , link = require("./utils/link.js")
, linkIfExists = link.ifExists
, asyncMap = require("slide").asyncMap
- , output = require("./utils/output")
+ , output = require("./utils/output.js")
module.exports = build
build.usage = "npm build <folder>\n(this is plumbing)"
View
@@ -31,25 +31,25 @@ exports.read = read
exports.clean = clean
exports.unpack = unpack
-var mkdir = require("./utils/mkdir-p")
- , exec = require("./utils/exec")
- , fetch = require("./utils/fetch")
- , npm = require("../npm")
+var mkdir = require("./utils/mkdir-p.js")
+ , exec = require("./utils/exec.js")
+ , fetch = require("./utils/fetch.js")
+ , npm = require("../npm.js")
, fs = require("graceful-fs")
- , rm = require("./utils/rm-rf")
- , readJson = require("./utils/read-json")
- , registry = require("./utils/npm-registry-client")
- , log = require("./utils/log")
+ , rm = require("./utils/rm-rf.js")
+ , readJson = require("./utils/read-json.js")
+ , registry = require("./utils/npm-registry-client/index.js")
+ , log = require("./utils/log.js")
, path = require("path")
, output
- , sha = require("./utils/sha")
- , find = require("./utils/find")
+ , sha = require("./utils/sha.js")
+ , find = require("./utils/find.js")
, asyncMap = require("slide").asyncMap
, semver = require("semver")
- , tar = require("./utils/tar")
+ , tar = require("./utils/tar.js")
, FMODE = tar.FMODE
, DMODE = tar.DMODE
- , fileCompletion = require("./utils/completion/file-completion")
+ , fileCompletion = require("./utils/completion/file-completion.js")
, url = require("url")
cache.usage = "npm cache add <tarball file>"
@@ -125,7 +125,7 @@ function read (name, ver, forceBypass, cb) {
// npm cache ls [<path>]
function ls (args, cb) {
- output = output || require("./utils/output")
+ output = output || require("./utils/output.js")
args = args.join("/").split("@").join("/")
if (args.substr(-1) === "/") args = args.substr(0, args.length - 1)
ls_(args, npm.config.get("depth"), function(er, files) {
View
@@ -5,8 +5,8 @@ completion.usage = "npm completion >> ~/.bashrc\n"
+ "npm completion >> ~/.zshrc\n"
+ "source <(npm completion)"
-var output = require("./utils/output")
- , configDefs = require("./utils/config-defs")
+var output = require("./utils/output.js")
+ , configDefs = require("./utils/config-defs.js")
, configTypes = configDefs.types
, shorthands = configDefs.shorthands
, nopt = require("nopt")
@@ -16,7 +16,7 @@ var output = require("./utils/output")
, shorthandNames = Object.keys(shorthands)
, allConfs = configNames.concat(shorthandNames)
, stdio = process.binding("stdio")
- , npm = require("../npm")
+ , npm = require("../npm.js")
completion.completion = function (opts, cb) {
if (opts.w > 3) return cb()
View
@@ -7,14 +7,14 @@ config.usage = "npm config set <key> <value>"
+ "\nnpm config list"
+ "\nnpm config edit"
-var ini = require("./utils/ini")
- , log = require("./utils/log")
- , npm = require("../npm")
- , exec = require("./utils/exec")
+var ini = require("./utils/ini.js")
+ , log = require("./utils/log.js")
+ , npm = require("../npm.js")
+ , exec = require("./utils/exec.js")
, fs = require("graceful-fs")
, dc
- , output = require("./utils/output")
- , types = require("./utils/config-defs").types
+ , output = require("./utils/output.js")
+ , types = require("./utils/config-defs.js").types
config.completion = function (opts, cb) {
var argv = opts.conf.argv.remain
@@ -65,7 +65,7 @@ function edit (cb) {
if (er) return cb(er)
fs.readFile(f, "utf8", function (er, data) {
if (er) data = ""
- dc = dc || require("./utils/config-defs").defaults
+ dc = dc || require("./utils/config-defs.js").defaults
data = [ ";;;;"
, "; npm "+(ini.get("global") ? "globalconfig" : "userconfig")+" file"
, "; this is a simple ini-formatted file"
View
@@ -18,10 +18,10 @@ deprecate.completion = function (opts, cb) {
})
}
-var registry = require("./utils/npm-registry-client")
+var registry = require("./utils/npm-registry-client/index.js")
, semver = require("semver")
- , log = require("./utils/log")
- , npm = require("../npm")
+ , log = require("./utils/log.js")
+ , npm = require("../npm.js")
function deprecate (args, cb) {
var pkg = args[0]
View
@@ -10,10 +10,11 @@ docs.completion = function (opts, cb) {
})
}
-var exec = require("./utils/exec")
- , registry = require("./utils/npm-registry-client")
- , npm = require("../npm")
- , log = require("./utils/log")
+var exec = require("./utils/exec.js")
+ , registry = require("./utils/npm-registry-client/index.js")
+ , npm = require("../npm.js")
+ , log = require("./utils/log.js")
+
function docs (args, cb) {
if (!args.length) return cb(docs.usage)
var n = args[0].split("@").shift()
View
@@ -4,13 +4,13 @@
module.exports = edit
edit.usage = "npm edit <pkg>"
-edit.completion = require("./utils/completion/installed-shallow")
+edit.completion = require("./utils/completion/installed-shallow.js")
-var npm = require("../npm")
- , exec = require("./utils/exec")
+var npm = require("../npm.js")
+ , exec = require("./utils/exec.js")
, path = require("path")
, fs = require("graceful-fs")
- , log = require("./utils/log")
+ , log = require("./utils/log.js")
function edit (args, cb) {
var p = args[0]
View
@@ -3,10 +3,10 @@
module.exports = explore
explore.usage = "npm explore <pkg> [ -- <cmd>]"
-explore.completion = require("./utils/completion/installed-shallow")
+explore.completion = require("./utils/completion/installed-shallow.js")
-var npm = require("../npm")
- , exec = require("./utils/exec")
+var npm = require("../npm.js")
+ , exec = require("./utils/exec.js")
, path = require("path")
, fs = require("graceful-fs")
View
@@ -3,6 +3,6 @@ module.exports = faq
faq.usage = "npm faq"
-var npm = require("../npm")
+var npm = require("../npm.js")
function faq (args, cb) { npm.commands.help(["faq"], cb) }
View
@@ -3,7 +3,7 @@ module.exports = get
get.usage = "npm get <key> <value> (See `npm config`)"
-var npm = require("../npm")
+var npm = require("../npm.js")
get.completion = npm.commands.config.completion
View
@@ -2,12 +2,12 @@
module.exports = helpSearch
var fs = require("graceful-fs")
- , output = require("./utils/output")
+ , output = require("./utils/output.js")
, path = require("path")
, asyncMap = require("slide").asyncMap
, docsPath = path.join(__dirname, "..", "doc")
- , log = require("./utils/log")
- , npm = require("../npm")
+ , log = require("./utils/log.js")
+ , npm = require("../npm.js")
helpSearch.usage = "npm help-search <text>"
View
@@ -8,9 +8,9 @@ help.completion = function (opts, cb) {
var fs = require("graceful-fs")
, path = require("path")
- , exec = require("./utils/exec")
- , npm = require("../npm")
- , output = require("./utils/output")
+ , exec = require("./utils/exec.js")
+ , npm = require("../npm.js")
+ , output = require("./utils/output.js")
function help (args, cb) {
if (args.length > 1 && args[0]) return npm.commands["help-search"](args, cb)
View
@@ -3,16 +3,16 @@
module.exports = init
-var prompt = require("./utils/prompt")
+var prompt = require("./utils/prompt.js")
, path = require("path")
- , readJson = require("./utils/read-json")
+ , readJson = require("./utils/read-json.js")
, fs = require("graceful-fs")
- , promiseChain = require("./utils/promise-chain")
- , exec = require("./utils/exec")
+ , promiseChain = require("./utils/promise-chain.js")
+ , exec = require("./utils/exec.js")
, semver = require("semver")
- , log = require("./utils/log")
- , npm = require("../npm")
- , output = require("./utils/output")
+ , log = require("./utils/log.js")
+ , npm = require("../npm.js")
+ , output = require("./utils/output.js")
init.usage = "npm init [folder]"
View
@@ -106,7 +106,7 @@ install.completion = function (opts, cb) {
// if it has a slash, then it's gotta be a folder
// if it starts with https?://, then just give up, because it's a url
// for now, not yet implemented.
- var registry = require("./utils/npm-registry-client")
+ var registry = require("./utils/npm-registry-client/index.js")
registry.get("/-/short", function (er, pkgs) {
if (er) return cb()
if (!opts.partialWord) return cb(null, pkgs)
@@ -131,27 +131,27 @@ install.completion = function (opts, cb) {
})
}
-var npm = require("../npm")
+var npm = require("../npm.js")
, semver = require("semver")
- , readJson = require("./utils/read-json")
- , log = require("./utils/log")
+ , readJson = require("./utils/read-json.js")
+ , log = require("./utils/log.js")
, path = require("path")
, fs = require("graceful-fs")
- , cache = require("./cache")
+ , cache = require("./cache.js")
, asyncMap = require("slide").asyncMap
, chain = require("slide").chain
- , relativize = require("./utils/relativize")
+ , relativize = require("./utils/relativize.js")
, output
, url = require("url")
- , mkdir = require("./utils/mkdir-p")
- , lifecycle = require("./utils/lifecycle")
+ , mkdir = require("./utils/mkdir-p.js")
+ , lifecycle = require("./utils/lifecycle.js")
function install (args, cb_) {
function cb (er, installed) {
if (er) return cb_(er)
- output = output || require("./utils/output")
+ output = output || require("./utils/output.js")
var tree = treeify(installed)
, pretty = prettify(tree, installed)
View
@@ -2,17 +2,17 @@
// link with no args: symlink the folder to the global location
// link with package arg: symlink the global to the local
-var npm = require("../npm")
- , symlink = require("./utils/link")
+var npm = require("../npm.js")
+ , symlink = require("./utils/link.js")
, fs = require("graceful-fs")
- , log = require("./utils/log")
+ , log = require("./utils/log.js")
, asyncMap = require("slide").asyncMap
, chain = require("slide").chain
, path = require("path")
- , relativize = require("./utils/relativize")
- , rm = require("./utils/rm-rf")
- , output = require("./utils/output")
- , build = require("./build")
+ , relativize = require("./utils/relativize.js")
+ , rm = require("./utils/rm-rf.js")
+ , output = require("./utils/output.js")
+ , build = require("./build.js")
module.exports = link
@@ -102,7 +102,7 @@ function linkInstall (pkgs, cb) {
function linkPkg (folder, cb_) {
var gp = npm.config.get("prefix")
, me = folder || npm.prefix
- , readJson = require("./utils/read-json")
+ , readJson = require("./utils/read-json.js")
readJson( path.resolve(me, "package.json")
, { dev: true }
, function (er, d) {
View
@@ -7,11 +7,11 @@
module.exports = exports = ls
-var npm = require("../npm")
- , readInstalled = require("./utils/read-installed")
- , output = require("./utils/output")
- , log = require("./utils/log")
- , relativize = require("./utils/relativize")
+var npm = require("../npm.js")
+ , readInstalled = require("./utils/read-installed.js")
+ , output = require("./utils/output.js")
+ , log = require("./utils/log.js")
+ , relativize = require("./utils/relativize.js")
, path = require("path")
ls.usage = "npm ls"
Oops, something went wrong.

0 comments on commit 645cef3

Please sign in to comment.