ietf-rfc-html-pmb
v0.1.3
Published
Render IETF RFCs as HTML, with indentation interpreted.
Downloads
5
Readme
ietf-rfc-html-pmb
Render IETF RFCs as HTML, with indentation interpreted.
Stability: experimental
You have been warned. ;-)
API
This module UMD-exports one function:
renderRfcAsHtml(text)
Where text
should be a string or buffer with the contents of rfcXXXX.txt
.
Setup
- Download the RFCs you want to render.
- To mirror all of them, you can use
util/update_rfcs_via_rsync.sh
.
- To mirror all of them, you can use
- If you want the web demo, try it and adjust webserver paths as needed.
Usage
- API: see src/cli.js
- CLI:
nodejs src/cli.js text-only/rfcXXXX.txt
- Web: src/fetch.html
Known issues
- Needs more/better tests and docs.
- Does anyone know an official, license-friendly source for the XML versions of the RFCs? Rendering them might be more reliable than guessing the meaning of whitespace. OTOH, XML parsing is a beast of its own.
License
ISC