Skip to content

Instantly share code, notes, and snippets.

@kanonji
Created August 13, 2012 02:10
Show Gist options
  • Save kanonji/3336462 to your computer and use it in GitHub Desktop.
Save kanonji/3336462 to your computer and use it in GitHub Desktop.
node.jsの基本構成
$ npm init
$ tree
.
├── bin
│   └── foo
├── docs
├── lib
│   └── foo.js
├── test
└── package.json
#!/usr/bin/env node
var foo = require('../lib/foo');
foo.main();
var foo = {};
module.exports = foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment