xls2enketo
v0.0.1
Published
Spreadsheet to Enketo Transformer ================================= NodeJS library that transforms spreadsheets to forms that enketo-core can render. It leverages both pyxform(xls to xform xml) and enketo-transformer (xform xml to enketo json format).
Downloads
4
Readme
Spreadsheet to Enketo Transformer
NodeJS library that transforms spreadsheets to forms that enketo-core can render. It leverages both pyxform(xls to xform xml) and enketo-transformer (xform xml to enketo json format).
Prerequisites
- python 2.7 and pyxform
- nodeJS 8 and npm
Installation
npm i xls2enketo
Usage
const xls2enketo = require('xls2enketo');
(async() => {
const enketoForm = await xls2enketo.transform(`${__dirname}/form.xlsx`);
console.log(enketoForm);
})()
Running tests
npm run test
Publish
npm publish --tag beta
TODO
- Add more samples/tests/travis
- Lint