rfc-to-bib

A library and CLI tool to generate BibTeX records for IETF RFCs.

Usage no npm install needed!

<script type="module">
  import rfcToBib from 'https://cdn.skypack.dev/rfc-to-bib';
</script>

README

rfc-to-bib

npm Version GitHub License Build Status

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.