This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

proofer

1.0.4 • Public • Published

Proofer

A thing to render API Blueprint documents in HTML.

proof (noun) a trial impression of a page, taken from type or film and used for making corrections before final printing.

This piggy-backs off a bunch of stuff:

Example project

The proofer-rendered versino of the Apiary polls.apib can be found at:

http://proofer-polls-apib.surge.sh/

Usage

Command line

Usage: proofer [options]

Options:

  -h, --help            output usage information
  -V, --version         output the version number
  -i, --apib [file]     API Blueprint input file
  -o, --output [dir]    Output dir [stdout]
  -t, --template [dir]  Also output HTML template in conjunction with -o [default]

Programmatic usage

You can require this in and use it programmatically like so:

const proofer = require('proofer');
proofer(pathToApib, outputDir, templateToUse, callback);

outputDir and templateToUse are optional and will return the rendered JSON as the callback argument. Specifying both will output as per the command line app.

Building

# Install & build
npm install
npm run build

# Launch the index.html in your fav browser
google-chrome bin/index.html

Readme

Keywords

none

Package Sidebar

Install

npm i proofer

Weekly Downloads

0

Version

1.0.4

License

ISC

Last publish

Collaborators

  • ashkyd