Takes a RAML object in JavaScript, specifically having the same structure of the output of the RAML JavaScript parser, and emits properly-formatted RAML (text).
Install npm modules
npm install
Run in terminal
node sample-node.js
This will take exmaple.raml
and convert to ramlObject
and then emit it to output.raml
.
beefy
is a dev-dependency and allows to run module in browser with browserify
:
npm start
If test fails it will show the diff between example.raml
and output.raml
npm test
MIT