rfc-to-bib
v0.2.2
Published
A library and CLI tool to generate BibTeX records for IETF RFCs.
Downloads
56
Maintainers
Readme
rfc-to-bib
A library and CLI tool to generate BibTeX records for IETF RFCs.
Install
CLI
$ npm install --global rfc-to-bib # Or alternately: `yarn global add rfc-to-bib`
API
$ npm install --save rfc-to-bib # Or alternately: `yarn add rfc-to-bib`
Usage
CLI
$ rfc-to-bib --help
A CLI tool to generate BibTeX records of IETF RFCs.
Usage
$ rfc-to-bib <rfc>
Options
-h, --help Display this screen.
-v, --version Display the software version.
Examples
$ rfc-to-bib 2616
$ rfc-to-bib 2616 > rfc2616.bib
API
const rfcToBib = require('rfc-to-bib');
let rfc = 2616;
rfcToBib(rfc).then(bib => {
console.log(bib);
}).catch(error => {
console.error(error.message);
});
Testing
$ npm test # Or alternately: `yarn test`
License
The MIT License (Expat). See the license file for details.