Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linusg/spec2json
📝 Extract section metadata and algorithm steps from specification HTML documents as JSON.
https://github.com/linusg/spec2json
bikeshed ecma262 ecma402 ecmarkup ecmascript libjs serenityos wattsi
Last synced: 4 months ago
JSON representation
📝 Extract section metadata and algorithm steps from specification HTML documents as JSON.
- Host: GitHub
- URL: https://github.com/linusg/spec2json
- Owner: linusg
- License: mit
- Created: 2022-04-11T19:28:57.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-04T18:27:24.000Z (6 months ago)
- Last Synced: 2024-10-04T21:37:13.880Z (4 months ago)
- Topics: bikeshed, ecma262, ecma402, ecmarkup, ecmascript, libjs, serenityos, wattsi
- Language: Python
- Homepage:
- Size: 52.7 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# spec2json
> Extract section metadata and algorithm steps from specification HTML documents
> as JSON.[![PyPI](https://img.shields.io/pypi/v/spec2json)](https://pypi.org/project/spec2json/)
![Python Version](https://img.shields.io/pypi/pyversions/spec2json)
[![License: MIT](https://img.shields.io/github/license/linusg/spec2json?color=d63e97)](https://github.com/linusg/spec2json/blob/main/LICENSE)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000)](https://github.com/psf/black)
[![Imports: isort](https://img.shields.io/badge/imports-isort-1674b1?labelColor=ef8336)](https://pycqa.github.io/isort/)## Installation
Install from PyPI:
```console
pip3 install spec2json
```## Usage
See `spec2json --help`.
Example:
```console
spec2json --numbered https://tc39.es/ecma262/ https://tc39.es/ecma402/ > ecmascript.json
```## Supported formats
- [Bikeshed](https://tabatkins.github.io/bikeshed/) (various Web specs),
- [Ecmarkup](https://tc39.es/ecmarkup/) (ECMAScript)
- [Wattsi](https://github.com/whatwg/wattsi) (HTML standard)