This repository is a template repository for creating other packages that consist of datasets published as @liquid-carrot/data.[DATASET_NAME].
Supports:
-
.json -
.csv -
.xml
When using this library as your template, the following steps are recommended:
-
Import/upload your original dataset into the
src/directory asraw.[EXTENSION](e.g.raw.csv,raw.json,raw.xml, etc.) -
Transform or copy your raw dataset into a
index.jsonfile within thesrc/directory - there should be abuild.jsfile in the directory's root that you can use to transform youraw.[EXTENSION]dataset intosrc/index.json. To editbuild.jsand see live changes, runnpm startbefore beginning to edit your file. -
Add your changes to your git repository with
git add . && git commit -m "[COMMIT_MESSAGE]"and push them toorigin/master. -
Publish the dataset to NPM with
npm publish
If you've succeeded in creating a good "data" repository, your file structure should look similar to the following:
.
|__ src/
| |__ raw.csv
| |__ index.csv
| |__ index.json
| |__ index.xml
|__ ,gitignore
|__ LICENSE
|__ README.md
|__ build.js
|__ package-lock.json
|__ package.json