@apielements/apib-parser
v0.20.1
Published
API Blueprint parser for API Elements
Downloads
9,003
Readme
API Elements: API Blueprint Parser
This adapter provides support for parsing API Blueprint in Fury.js using the Node API Blueprint parser Drafter NPM.
Install
$ npm install @apielements/apib-parser
Usage
import fury from 'fury';
import apibParser from '@apielements/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);
});