Skip to content

Latest commit

 

History

History
 
 

fury-adapter-apib-parser

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Fury API Blueprint Parser

NPM version License

This adapter provides support for parsing API Blueprint in Fury.js using the Node API Blueprint parser Drafter NPM.

Install

npm install fury-adapter-apib-parser

Usage

import fury from 'fury';
import apibParser from 'fury-adapter-apib-parser';

fury.use(apibParser);

fury.parse({source: '... your API Blueprint ...'}, (err, result) => {
  if (err) {
    console.log(err);
    return;
  }

  // The returned `result` is a Minim parse result element.
  console.log(result.api.title);
});