A small utility to help with seeding data in your Chec dashboard
npm install @chec/seederYou can define following properties as environment variables:
CHEC_SECRET_KEY- (required) - Your Chec secret API key.CHEC_API_URL- (optional) - API URL, defaults toapi.chec.io.
Add a seed command to your package.json
{
"scripts": {
"seed": "chec-seed path/to/json/files"
}
}This script can be installed globally:
npm install -g @chec/seederThen you can use this helper outside of a project to seed data easily, like so:
chec-seeder path/to/json/filesYou can also use this package within your Node.js projects:
const seed = require('@chec/seeder');
seed('path/to/json/files');