raml-js-client-codegen

0.0.3 • Public • Published

raml-js-client-codegen

Generate a JavaScript client from a RAML API specification

Installation

npm install raml-js-client-codegen -g

How it works

Usage: raml-js-client-codegen [options]
A module to generate javascript clients from RAML API specification
 
Options:
  --help        Show help text.                              [boolean]
  --version     Show version number                          [boolean]
  --input, -i   Path to RAML input specification file       [required]
  --output, -o  Path to JS file to write generated client.
                                                   [default: "stdout"]
  --env, -e     The environment for which the client will run.
                        [choices: "node""browser"] [default: "node"]

Simply pass in parameters as flags:

raml-js-client-codegen --input /path/to/api-spec.raml --output /path/to/client.js --env node

Important

This is still a work in progress, and although usable, the API may constantly change in the near future.

Contributing

Issues and pull requests are more than always welcome :-)

Package Sidebar

Install

npm i raml-js-client-codegen

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

18.9 kB

Total Files

10

Last publish

Collaborators

  • wizzy25