Last active
December 11, 2015 10:59
-
-
Save jeffgca/4590856 to your computer and use it in GitHub Desktop.
My current node.js boilerplate
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
#!/usr/bin/env node | |
var util = require('util'), | |
fs = require('fs'), | |
path = require('path'), | |
mysql = require('mysql'), | |
moment = require('moment-range'), | |
async = require('async'), | |
csv = require('csv'), | |
YAML = require('libyaml'), | |
_ = require('underscore'); | |
var L = console.log, | |
D = function(o) { L(util.inspect(o)); }, | |
F = function(s) { return util.format.apply(null, arguments); }; | |
function getConfig(path) { | |
var docs = YAML.readFileSync(path); | |
return docs[0]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment