Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-csv

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-csv

A csv generator produces random data

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

create-csv

A fast and simple CSV file generator. No dependencies and easy to config.

Usage

create-csv --filename demo --column 'column 1' string 1000 --column 'column 2' number 500 --seed 111

The above command will generate a file named 'demo' under current directory. The file will contains two columns (namely column 1 and column 2), The first column will contain 1000 string data, and the second will contain 500 number data. The total data point will be 1000 * 2 = 2000, with the missing ones filled with null.

The same arguments will always generate the same csv file with pseudo-random data. You can optionally use seed option to control the random outcomes.

Options

--filename

  • Default: Date.now()

The name of the file generated.

--column

The column definition. The order should be column header, data type and data count. Please refer to example above.

--seed

  • Default: 1

The pseudo-random seed. Same seed will always generate same set of data

TODO

  • Adding more configs based on feedback

Keywords

FAQs

Package last updated on 02 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc