1.0.1 • Published 8 years ago

xml-compiler v1.0.1

Weekly downloads
11
License
MIT
Repository
-
Last release
8 years ago

xml-compiler

XML and JSON Compiler based on the documentation of JXON

npm install xml-compiler --save

Try it out

node example

API

new XMLCompiler(config)

Create a new instance of the XMLCompiler

XMLCompiler.toJSON(DocObject)

Create a new JSON file from an XML file. Returns the corresponding JSON object from the Promise.

DocObject

PropertyTypeDescriptionRequired
docPathsArray (String)Array of paths to the target files.Yes
destDirStringPath destination for the compiled files.No
jsOutBoolOptional JS file to be added with the source of the JSON file in a require statement.No

For example

{
  docPaths: ['some/path/to/file.xml'],
  destDir: 'some/output/path'
}
1.0.1

8 years ago

1.0.0

8 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago