customer-data-validators
Validation Scripts for Elevate Security Customer HR/Behaviors Dataset Formats
Prerequisite
Usage
The CLI is self-documented, just execute and it will output the available commands.
Example, to check the tests/2019-10-30-00_58_46.csv
file with person/v1
integration type:
./cli.js check tests/2019-10-30-00_58_46.csv person/v1
As a CLI:
By cloning the source code
git clone git@github.com:ElevateSecurity/customer-data-validators.git
cd customer-data-validators
./cli.js -h check tests/2019-10-30-00_58_46.csv person/v1
If you prefer to install a specific version of the package and run it as a binary
npm install @elevate_security/customer-data-validators
npm link
customer-data-validator -h
If you don't want to install the package up-front and just want to execute the command as a one-off:
npx --package @elevate_security/customer-data-validators customer-data-validator -h
If npx
is not installed: npm install -g npx
In a React application:
npm install @elevatesecurity/customer-data-validators --save
Then
import CustomerDataValidator from '@elevatesecurity/customer-data-validators'
CustomerDataValidator('a,b\n1,2', 'person/v1').then(console.log)
Tests
npm run test