Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hildjj/html-rfc
Tools for dealing with canonicalized-HTML RFCs
https://github.com/hildjj/html-rfc
Last synced: 15 days ago
JSON representation
Tools for dealing with canonicalized-HTML RFCs
- Host: GitHub
- URL: https://github.com/hildjj/html-rfc
- Owner: hildjj
- License: apache-2.0
- Created: 2012-03-28T09:12:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-08-04T19:21:08.000Z (over 8 years ago)
- Last Synced: 2024-10-18T20:33:33.782Z (28 days ago)
- Language: JavaScript
- Homepage:
- Size: 1.79 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
NOTE: This repo is entirely overcome by events, but is archived here in case any of the ideas resurface later.
IETF RFCs with the authoring, archival, and reading formats all being HTML.
A prototype, for now.
### Installation
Eventually, this project will be put into [NPM](http://npmjs.org/). Until then:
git clone git://github.com/IETF-Formatters/html-rfc.git
cd html-rfc
npm install### idemponit Usage
Convert input.html to output.html, fixing it up:bin/idemponit input.html output.html
Convert input.html in-place, making input.html.bak be the old version:
bin/idemponit -b input.html
Idemponit will read all of the fixup routines from the nits/ directory, applying each one to the input before serializing the output as well-formed HTML5.
If you want to have your own set of fixup routines, put .js files in ~/.idemponit
Pass in more directories (perhaps document-specific) with --nitdir on the command line.
### rfcq Usage
To test out a jQuery selector, or to retrieve meta-data from a document, use bin/rfcq:bin/rfcq '$(".author .surname").first().text()' docs/draft-hildebrand-html-rfc.html
### License
This code is licensed under the [Apache Software License, 2.0](http://www.apache.org/licenses/LICENSE-2.0)