raml-object-to-raml
v0.0.7
Published
Takes a RAML object in JavaScript and emits properly-formatted RAML (text).
Readme
RAML Object To RAML
Takes a RAML object in JavaScript and emits properly-formatted RAML (text).
Installation
npm install raml-object-to-raml --saveUsage
CLI
Supports piping in JSON and printing the resulting RAML to stdout.
cat api.json | raml-object-to-raml > api.ramlJavaScript
The module can be required inside other projects for generating the RAML file directly from JavaScript objects.
var toRAML = require('raml-object-to-raml');
console.log(toRAML({ ... }));
// #%RAML 0.8
// title: Example API
// ...License
Apache 2.0
