@chec/seeder

1.1.1 • Public • Published

Chec Seeder

Version License

A small utility to help with seeding data in your Chec dashboard

Download

npm install @chec/seeder

Configuring

You can define following properties as environment variables:

  • CHEC_SECRET_KEY - (required) - Your Chec secret API key.
  • CHEC_API_URL - (optional) - API URL, defaults to api.chec.io.

Usage

As a NPM script

Add a seed command to your package.json

{
    "scripts": {
        "seed": "chec-seed path/to/json/files"
    }
}

Global usage

This script can be installed globally:

npm install -g @chec/seeder

Then you can use this helper outside of a project to seed data easily, like so:

chec-seeder path/to/json/files

Within code

You can also use this package within your Node.js projects:

const seed = require('@chec/seeder');

seed('path/to/json/files');

Readme

Keywords

none

Package Sidebar

Install

npm i @chec/seeder

Weekly Downloads

15

Version

1.1.1

License

BSD-3-Clause

Unpacked Size

9.4 kB

Total Files

7

Last publish

Collaborators

  • checplatform
  • dvnkshl
  • robbieaverill
  • scopey
  • notrab
  • kvisca
  • jaeriahtay