0.0.7 • Published 8 years ago

raml-object-to-raml v0.0.7

Weekly downloads
89
License
Apache 2.0
Repository
github
Last release
8 years ago

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

0.0.7

8 years ago

0.0.6

8 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