Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-04-28 | cli: replace cli.js with bin/npm-cli.js and remove cli.js (#12096) | Daijiro Wachi | |
* scripts: replace cli.js with npm-cli.js * cli: remove unused file cli.js * docs: replace cli.js with bin/npm-cli.js PR-URL: https://github.com/npm/npm/pull/12096 Credit: @watilde Reviewed-By: @zkat | |||
2015-06-26 | src: make the npm source comply with `standard` | Forrest L Norvell | |
This is a huge set of mostly mechanical changes. Going forward, all changes to the npm source base are expected to comply with `standard`, and it's been integrated into the test suite to enforce that. There are a few notes below about specific classes of changes that need to be handled specially for npm's code base. standard: "Expected error to be handled." `standard` only expects errors spelled "err" to be handled. `npm-registry-mock` never actually invokes its callback with an error, so in some cases I just changed it to be spelled "er" and called it good. standard: "Expected a "break" statement before 'case'." This behavior is actually on purpose, and I don't feel like rewriting the affected code right now (or, you know, ever). So I added code comments disabling the checks in the three applicable changes. standard: "x is a function." Rebinding functions created via declarations (as opposed to expressions) is a no-no? PR-URL: https://github.com/npm/npm/pull/8668 | |||
2011-10-15 | Avoid accidentally opening npm.js with WSH | isaacs | |
2011-01-09 | Put executables in ./bin | isaacs | |
Move towards having multiple different executables for various things. | |||
2010-12-19 | Regression. Show usage for unknown commands. | isaacs | |
2010-12-17 | regression. failed to sniff command properly | isaacs | |
2010-12-17 | Factor out the arg parsing | isaacs | |
2010-12-13 | Add shorthands for --verbose and --silent/-s to set loglevel | isaacs | |
2010-12-13 | Use effective location of node as execPath. | isaacs | |
Do the `which`-style execp lookup for something matching argv[0] if it's not absolute, and then use THAT as the effective execPath instead of the *actual* execPath. This should provide some ways to work around odd situations that arise when node is installed with other package managers, particularly Homebrew. | |||
2010-12-13 | typo | isaacs | |
2010-12-13 | Warnings and pointers for homebrew users. | isaacs | |
Warn if Cellar paths detected in __filename or execPath. Echo a warning whenever bins/modules/man pages are installed to someplace where they are unlikely to be found. | |||
2010-12-06 | add -d, -dd, -ddd as debugging flags. | isaacs | |
2010-11-20 | Updates to make it work with writev | isaacs | |
When writing to stdout, and then calling process.exit right after, the write never happens. Probably a bug in node. | |||
2010-11-15 | Handy for listing local modules. | isaacs | |
2010-10-27 | Show the node version for debugging power | isaacs | |
2010-10-24 | More "programmatic npm" updates. | isaacs | |
Building more upon the patch from Charlie Robbins (d7c69821a01c8327f5468fe7a115f2537f908da9), these changes remove any way of npm actually triggering a program exit than by being called by the cli. - Move the "exit" option off the opts object and onto a proper config setting. Why not? - Use \r\n for most output, so that it'll look correct in the repl, or other places where \n may not be enough. - Add a comment about loading npm programmatically. | |||
2010-10-24 | [api] Small changes to make npm available programatically | indexzero | |
2010-10-22 | Don't die as quickly when npm's package.json is missing | isaacs | |
2010-10-19 | show usage on --help as well as -h and -? | isaacs | |
2010-10-16 | Avoid the sys warnings. | isaacs | |
2010-10-02 | Move error handling into a separate file, and add more support for common ↵ | isaacs | |
issues. | |||
2010-09-29 | Bugfix | isaacs | |
2010-09-29 | Print nice short "usage" lines when doing -h, -?, or --help | isaacs | |
2010-09-26 | Fix #246. Print npm version clearer | isaacs | |
2010-09-22 | Support "./foo" for root configs, and parse cli with the same logic that ini ↵ | isaacs | |
and env confs go through | |||
2010-09-21 | Throw an error if the cb is called more than once. | isaacs | |
2010-09-02 | throw if a bad version of node. | isaacs | |
2010-08-29 | Handle errors a little more DRYly. | isaacs | |
2010-08-27 | Better error message for cygwin DNS issuev0.1.27-7 | isaacs | |
2010-08-25 | Don't buffer logs unless we know that the config is coming. | isaacs | |
An inelegant solution, but it works. | |||
2010-08-24 | make sure that falsey args get set right | isaacs | |
2010-08-24 | log better | isaacs | |
2010-08-24 | Make the error messages a bit more errory | isaacs | |
2010-08-24 | log configgy pudding | isaacs | |
2010-08-23 | Use the graceful-fs module instead of using fs directly. | isaacs | |
2010-08-23 | Add an "error" function to match the "warning" function. | isaacs | |
2010-08-23 | Clear the temp files before process.exit, not on exit | isaacs | |
2010-08-10 | Remove kludge for old versions | isaacs | |
2010-08-09 | Always show help if the args contain --help or -h or -? | isaacs | |
2010-08-07 | Handle stdin/exiting a little more gracefully. | isaacs | |
2010-08-05 | Fix for earlier versions of node that didn't have proper module identity. | isaacs | |
Rollback previous non-fix for 155 and 154. This actually fixes #155 and #154 | |||
2010-08-05 | Remove unnecessary sys.inspect | isaacs | |
2010-08-03 | Resolve configs, passing in the cli flags | isaacs | |
2010-08-03 | Revert cli.js | isaacs | |
2010-08-03 | savestate. wip. totally choppy useless crap. | isaacs | |
2010-07-25 | If printing the version, show "ok" rather than "not ok" | isaacs | |
2010-07-25 | Whitespace | isaacs | |
2010-07-25 | Don't load command logic until/unless necessary | isaacs | |
2010-07-25 | Manually exit if necessary, and say "not ok" when not ok | isaacs | |
2010-07-03 | s/addListener/on/g | isaacs | |