- Header and a Brief description (should match package.json)
- Example (if applicable)
- Motivation (if applicable)
- API Documentation: This will likely vary considerably from library to library.
- Installation
- Tests
- Contributors
- License
If two versions of colors exist on disk then this will always throw. This is extremely common in development scenarios with npm link
but also if two packages depended on by a third both depend on colors but the parent does not.
parent-app
`--- pkg-a
| `---colors
`--- pkg-b
`---colors
history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -r
288 git
29 heroku
28 bin/runserver
24 cd
23 node
13 ll
11 vi
10 open
This file contains hidden or 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
history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn | |
284 git | |
29 heroku | |
28 bin/runserver | |
24 cd | |
23 node | |
13 ll | |
11 vi | |
10 open |
This file contains hidden or 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
> var err = new Error('wtf?'); | |
> JSON.stringify(err) | |
'{"stack":"Error: wtf?\\n at [object Context]:1:11\\n at Interface.<anonymous> (repl.js:179:22)\\n at Interface.emit (events.js:64:17)\\n at Interface._onLine (readline.js:153:10)\\n at Interface._line (readline.js:408:8)\\n at Interface._ttyWrite (readline.js:585:14)\\n at ReadStream.<anonymous> (readline.js:73:12)\\n at ReadStream.emit (events.js:81:20)\\n at ReadStream._emitKey (tty_posix.js:307:10)\\n at ReadStream.onData (tty_posix.js:70:12)","message":"wtf?"}' | |
> Object.keys(err); | |
[ 'stack', 'arguments', 'type', 'message' ] | |
> Object.getOwnPropertyDescriptor(err, 'stack'); | |
{ get: [Function], set: [Function], enumerable: true, configurable: true } | |
> process.versions.v8 | |
'3.1.8.26' |
This file contains hidden or 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
global.config = require('./lib/config').load("config/app.json"); | |
var cluster = require('cluster'); | |
var fs = require('fs'); | |
var app = require('./app'); | |
// Logging | |
var log = require('./lib/winston'); | |
global.log = log; | |
// Write out pidfile |
This file contains hidden or 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
var fs = require('fs') | |
var DataCollector = function(arr) { | |
this.setFiles(arr) | |
} | |
DataCollector.prototype = { | |
setFiles: function(arr) { | |
this.files = arr | |
} |
This list has been computed using a silly tool I developed on a lark called npmcount:
- Search npm for packages belonging to a set of users.
This file contains hidden or 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
node_modules | |
*.log | |
*~ |
For more information, you can read a related blog post on this topic
Node is awesome, Phidgets are awesome. Syngergy. All I wanted to do was tweet the temperature of my house automatically…
- A computer (or a virtual machine) running a full version of the Debian operating system