Skip to content

Instantly share code, notes, and snippets.

@chrisronline
Created March 18, 2015 13:05
Show Gist options
  • Save chrisronline/f46a8b29b5e90f003963 to your computer and use it in GitHub Desktop.
Save chrisronline/f46a8b29b5e90f003963 to your computer and use it in GitHub Desktop.
var fs = require('fs');
fs.readFile(__dirname + '/1426677542365_data.json', function(err, data) {
if (err) throw err;
var json = JSON.parse(data);
console.log('Rows=%d Length=%d', json.length, new Buffer(JSON.stringify(json)).toString('base64').length);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment