A template to write data checks for the Dataproofer desktop app or any JavaScript application.
Count and display the number of rows
Parameters
rows
Array an array of objects representing rows in the spreadsheetcolumnHeads
Array an array of strings for column names of the spreadsheet
Returns Object describing the result
src/columnsContainNumbers.js:16-66
Determine the percentage of rows that are numbers for each column
Parameters
rows
Array an array of objects representing rows in the spreadsheetcolumnHeads
Array an array of strings for column names of the spreadsheet
Returns Object describing the result
src/columnsContainNothing.js:16-67
Calculates the percentage of rows that are empty for each column
Parameters
rows
Array an array of objects representing rows in the spreadsheetcolumnHeads
Array an array of strings for column names of the spreadsheet
Returns Object describing the result
git clone git@github.com:dataproofer/info-suite.git
cd info-suite
npm install
- How To
- Helper Scripts
- Templates
We use documentation.js, but have created a handy script for regenerating documentation.
npm run docs
Then open up and check your docs in DOCUMENTATION.md