Skip to content

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).

License

Notifications You must be signed in to change notification settings

eliasmamo/raml-object-to-raml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAML Object To RAML

NPM version Build status Test coverage

Takes a RAML object in JavaScript and emits properly-formatted RAML (text).

Installation

npm install raml-object-to-raml --save

Usage

CLI

Supports piping in JSON and printing the resulting RAML to stdout.

cat api.json | raml-object-to-raml > api.raml

JavaScript

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

About

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).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%