DDF validion tool
npm install ddf-validation-ng1. install ddf-validation-ng
- npm install -g ddf-validation-ng
2. run ddf-validation-ng on target path
`` shell
$ validate-ddf-ng -h
validate-ddf - DDF dataset validator
Usage: validate-ddf-ng [--no-warning] [PATH] [-m|--mode ARG]
[-p|--generate-datapackage]
validate DDF dataset at PATH (default to current working dir)
Available options:
--no-warning don't show warnings
PATH The dataset path to validate
-m,--mode ARG configure how validator find files (filenames or
datapackage, default filenames)
-p,--generate-datapackage
whether to generate a datapackage.json after
validation. (default false)
-h,--help Show this help text
`
There are 2 modes: filenames and datapackage. In filenames mode, the
validator will enumerate all files in a given folder and try to find
all the filenames that match ddf standard. In datapackage mode, the
validator will read all files in the resources list in datapackage.json.
1. install purescript and spago
- npm install -g purescriptnpm install -g spago@next
- npm install
2. to install dependencies
- spago install
- npm run build
3. run (which will run spago build)
- run npm run test
2. update the version string in src/Main.purs
3. build the app and module bundle
- npm run bundle-app
- npm run bundle-module
4. npm publish`