A collection of scripts (currently generateCompanies.js
and generateContacts.js
) that output fake company and contact records in JSON and CSV format that can be used to seed a CRM (e.g. HubSpot) with fake data for design & development purposes.
The schema for records can be changed or updated to create records with different properties, or used to create records of different types, as needed. To do this, clone this repo, update any of the generate{{recordType}}.js
functions to meet the record criteria you're looking for, then run the functions to output a list of records of that type in JSON and CSV formats.
- Ensure you have
node
andnpm
installed. - Clone this repo.
- Navigate to the project, your
faker-data-generator
directory. - Run
npm install
install the necessary dependencies, e.g.faker
,json2csv
, etc. - Run
node generateCompanies.js
ornode generateContacts.js
Running either generateCompanies.js
or generateContacts.js
will create a corresponding CSV and JSON file for that record type, e.g. contacts.csv or contacts.json.
Thanks to Faker and json2csv/ for the creation of useful utilities for the development community.