fury-adapter-apib-parser-js
v0.10.0
Published
API Blueprint parser for Fury.js using drafter.js
Readme
Fury API Blueprint Parser
This adapter provides support for parsing API Blueprint in Fury.js using the Node API Blueprint parser Drafter NPM.
Note
This is a fork of the https://github.com/apiaryio/fury-adapter-apib-parser project using drafter.js instead of the C++ version of drafter.
Install
npm install fury-adapter-apib-parserUsage
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);
});