Skip to content

Instantly share code, notes, and snippets.

View davidbirkin's full-sized avatar

David Birkin davidbirkin

View GitHub Profile
@tlync
tlync / split-json.js
Created September 1, 2012 06:08
Split large json file
if(process.argv.length < 3){
console.log('target file path is required.')
process.exit(1)
}
var target = process.argv[2]
console.log('file: ' + target)
var fs = require('fs')
fs.readFile(target, function (err, data) {