- npm-registry-client: https://github.com/isaacs/npm-registry-client (handles the cli -> couchdb stuff)
- npmlog: https://github.com/isaacs/npmlog (npm's logger utility)
- read-package-json: https://github.com/isaacs/read-package-json (what npm uses to read your package.json files)
- read-installed: https://github.com/isaacs/read-installed (Reads a folder and returns a dependency tree)
- init-package-json: https://github.com/isaacs/init-package-json (What npm uses to create a package.json when you run
npm init
) - npmconf: https://github.com/isaacs/npmconf (What npm uses to manage its configuration, including a list of defaults)
- nopt: https://github.com/isaacs/nopt (what npm uses for option parsing)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2013, Yahoo! Inc. All rights reserved. | |
* Copyrights licensed under the New BSD License. | |
* See the accompanying LICENSE file for terms. | |
*/ | |
void LogStackTrace(Handle<Object> obj) { | |
try { | |
Local<Value> args[] = {}; | |
Local<Value> frameCount = obj->Get(String::New("frameCount")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi Luke, | |
My name is Rebecca and I work for a publishers called Packt Publishing. We publish books for all levels of I.T. users across Enterprise and Open Source software (www.packtpub.com if you would like to have a look). | |
We currently have a book in development titled 'Node.js Design Patterns' which will aim to provide the reader with a set of Node.js server side design patterns through a series of step-by-step tutorials, it'll hopefully be around 300-350 pages. | |
I see that you're working at Yahoo with Node and have worked with Node.js on a variety of open source projects, also that you've presented at NodeSummit 2013, so I was wondering if you'd be interested in authoring this book for us? | |
If so, please let me know and we can discuss the opportunity further. |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ remain: [ 'i', 'mlb' ], | |
cooked: [ 'i', 'mlb', '--save' ], | |
original: [ 'i', 'mlb', '-S' ] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We'll let you know when it's ready. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'll let you know when it's ready. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1.0 | |
semver.satisfies('2.1.0', '>2.x.x') // true | |
// 2.0 | |
semver.satisfies('2.1.0', '>2.x.x') // false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSON.stringify(o, null, 2) | |
.split(/(,\n\s+)/) | |
.map(function (e, i) { | |
return i%2 ? '\n'+e.substring(4)+', ' : e | |
}) | |
.join('') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "keys": ["super+shift+r"], "command": "reindent" } |
NewerOlder