generate node packages with simple xml!
first, write a sensible configuration file, like:
jdengenerate node packages with simple xml!xmlthe bestso extensiblevery markupsuch enterprisewowindex.jsmochanode email@example.com:jden/node-npml.gitISCREADME.md
Now wouldn't it be awesome if npm just let you use that directly? Sadly, it doesn't - but that's where npml comes it! With this tool, you can write the xml you love while automatically generating the fragile, application-specific format used by package.json.
So, once we have the above xml, we can automatically generate that package.json file like so:
$ cat package.xml | npml > package.json
The advantages of this technique are obvious, but the main one is worth calling out: you get to continue to use your full xml toolchain, so it's easy to generate, validate, and transform package configurations coming from any environment. And since it's xml, you can extend it with your own tags and formats if you want.
$ npm install -g npml
From package root:
$ npm install $ npm test
ISC. (c) MMXIV jden firstname.lastname@example.org. See LICENSE.md