Skip to content

Instantly share code, notes, and snippets.

@jimkang
Created May 1, 2018 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimkang/f7896c96b9d348be5188f60966694bdf to your computer and use it in GitHub Desktop.
Save jimkang/f7896c96b9d348be5188f60966694bdf to your computer and use it in GitHub Desktop.
Typical top of a tool script
/* global __dirname, process */
var fs = require('fs');
var ndjson = require('ndjson');
var through2 = require('through2');
var callNextTick = require('call-next-tick');
if (process.argv.length < 3) {
console.log(
'Usage: node tools/toolname.js <export something.ndjson> > new_file.ndjson'
);
process.exit();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment