Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

enketo-transformer

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enketo-transformer

Library that transforms ODK-compliant XForms in a format that enketo-core consumes

  • 1.5.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
189
increased by166.2%
Maintainers
1
Weekly downloads
 
Created
Source

Enketo Transformer

npm version Build Status Dependency Status

NodeJS library that transforms OpenRosa/ODK XForms into a format the Enketo understands. It works both as a library module, as well as a standalone app.

Prerequisites

  1. node v0.12.x or node v0.10.x is required for now. io.js v3.3.0 may not work.

Install as module

npm install enketo-transformer --save

Use as module

var transformer = require('enketo-transformer');
var xform = fs.readFileSync( 'path/to/xform.xml' );
  
var result = transformer.transform( {
    xform: xform
} );

Install as app (web API)

  1. clone repo
  2. install dependencies with npm install

Use as app (web API)

  1. start with npm start
  2. use with queryparameter e.g. with http://localhost:8085/transform?xform=http://myxforms.com/myxform.xml

Response format

{
	"form" : "<form>.....</form>",
	"model": "<model>...</model>"
}
	

Test

  • install mocha
  • run tests with npm test

Develop

A vagrant configuration file and provisioning script is included.

Change Log

See change log

Keywords

FAQs

Package last updated on 10 Sep 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc