Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 476 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 476 Bytes

#webidl-extract

Parse a stream of HTML and output the WebIDL within

Example

Use the programmable API:

const WebIDLFetch = require('webidl-fetch');

process.stdin
  .pipe(new WebIDLFetch())
  .pipe(process.stdout);

Use the CLI:

curl -sL http://dev.w3.org/csswg/cssom/ | webidl-fetch > cssom.idl

Acknowledgement

This is really just a modernized and simplified version of webidl-scraper.