Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
enketo-validate
Advanced tools
Validate ODK XForms using Enketo's form engine
This app can be used:
Live demo web application (meant for testing purposes only) that uses Enketo Validate (and ODK Validate) as a module: validate.enketo.org (source code)
apt-get install build-essential
npm install --production
$ ./validate ~/myform.xml
$ ./validate --help
npm install enketo-validate --save
const validator = require('enketo-validate');
// read the xform as string
let result = validator.validate( xformStr, options );
// The result has the following format:
// {
// warnings: [ 'a warning', 'another warning'],
// errors: ['an error', 'another error']
// }
// if errors.length is 0, the form passed validation
In it's current iteration, the validator does the following:
nodeset
exists in the primary instance.<bind>
whether the relevant
, constraint
, calculate
, and required
expressions are supported and valid* XPath.* Note, that /path/to/nonexisting/node
is perfectly valid XPath.
The development of this application was funded by OpenClinica.
See the license document for this application's license.
See change log
FAQs
An XForm validator around Enketo's form engine
The npm package enketo-validate receives a total of 209 weekly downloads. As such, enketo-validate popularity was classified as not popular.
We found that enketo-validate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.