# rfc2bibtex

> Generate a BibTeX reference for a given RFC number.

Latest version **1.0.1** (published 2021-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install rfc2bibtex
pnpm add rfc2bibtex
yarn add rfc2bibtex
bun add rfc2bibtex
```

Provides the command `rfc2bibtex`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-03-07 |
| First published | 2021-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=12 |
| Dependencies | 3 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 (+17 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jonathan Weber |
| Maintainers | bejonwe |
| Keywords | cli-app, cli |

## Links

- npm: https://www.npmjs.com/package/rfc2bibtex
- Repository: https://github.com/bejonwe/rfc2bibtex
- Homepage: https://github.com/bejonwe/rfc2bibtex#readme
- Issues: https://github.com/bejonwe/rfc2bibtex/issues
- npm.io page: https://npm.io/package/rfc2bibtex

## Dependencies (3)

- [meow](https://npm.io/package/meow.md) ^9.0.0
- [xmldom](https://npm.io/package/xmldom.md) ^0.4.0
- [xmlhttprequest](https://npm.io/package/xmlhttprequest.md) ^1.8.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-03-07
- 1.0.0 — 2021-03-07

## README

# rfc2bibtex

> Generate a BibTeX reference for a given RFC number.

## CLI

```
$ npm install --global rfc2bibtex
```

```
$ rfc2bibtex --help

  Usage
    $ rfc2bibtex [rfc number]

  Options
    --indentation, -i The characters used as indentation. Default is two spaces.

  Examples
    $ rfc2bibtex 2818 --indentation "  "
    @techreport{rfc2818,
      AUTHOR = "Rescorla, E.",
      TITLE = "{HTTP Over TLS}",
      TYPE="{RFC}",
      NUMBER=2818,
      YEAR = {2000},
      MONTH = {May},
      doi = {10.17487/RFC2818}
    }
  
    $ rfc2bibtex 2818 -i "\t"
    @techreport{rfc2818,
        AUTHOR = "Rescorla, E.",
        TITLE = "{HTTP Over TLS}",
        TYPE="{RFC}",
        NUMBER=2818,
        YEAR = {2000},
        MONTH = {May},
        doi = {10.17487/RFC2818}
    }
```

## Install

```
$ npm install rfc2bibtex
```

## Usage

```js
import rfc2bibtex from 'rfc2bibtex';

rfc2bibtex('2818', {indentation: '  '});
//=> @techreport{rfc2818,
//    AUTHOR = "Rescorla, E.",
//    TITLE = "{HTTP Over TLS}",
//    TYPE="{RFC}",
//    NUMBER=2818,
//    YEAR = {2000},
//    MONTH = {May},
//    doi = {10.17487/RFC2818}
//  }
```

## API

### rfc2bibtex(rfc, options?)

#### rfc

Type: `string`

Number of the RFC, e.g. 2818.

#### options

Type: `object`

##### indentation

Type: `string`
Default: `  `

The characters used as indentation. Default is two spaces.

---
_Source: https://npm.io/package/rfc2bibtex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
