Created
March 29, 2019 07:09
-
-
Save tvhung83/03da141a081b6d0dd9a69d1c8ed9f6f2 to your computer and use it in GitHub Desktop.
This file contains 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
const generate = require('csv-generate') | |
const fs = require('fs') | |
const minimist = require('minimist') | |
let args = minimist(process.argv.slice(2), { | |
alias: { | |
f: 'file', | |
c: 'columns', | |
l: 'length' | |
} | |
}) | |
const output = fs.createWriteStream(args.f) | |
generate({seed: 123456, columns: args.c, length: args.l}).pipe(output) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage