Skip to content

Instantly share code, notes, and snippets.

@paulosuzart
Created July 7, 2017 16:58
Show Gist options
  • Save paulosuzart/c0bb2d7784fc0faae1a707b78f9f99b0 to your computer and use it in GitHub Desktop.
Save paulosuzart/c0bb2d7784fc0faae1a707b78f9f99b0 to your computer and use it in GitHub Desktop.
generation of fake data
const fs = require('fs');
const csvWriter = require('csv-write-stream')
const writer = csvWriter({ headers: ["id", "name"]});
const faker = require('faker');
writer.pipe(fs.createWriteStream('out.csv'))
for (var i = 1; i < 2000000; i++) {
writer.write([i, faker.name.findName()]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment