open-index/open-npm huggingface dataset:
npm package: @spaceduckapp/readability-cli
Description: Simple CLI wrapper around @mozilla/readability
Author: The team at Spaceduck
Latest version: 1.1.0

# readability-cli

Simple CLI wrapper around [`@mozilla/readability`](https://github.com/mozilla/readability) and (optionally) [DOMPurify](https://github.com/cure53/DOMPurify).

Made with ❤️ by [spaceduck.com](https://www.spaceduck.com?utm_source=github&utm_medium=readme&utm_id=oss.rcli)


## Installation

```console
$ npm install -g @spaceduckapp/readability-cli
```

## Usage

Basic:
```console
$ readability-cli path/to/input.html --out path/to/output.json
```


Using stdin / stdout:
```console
$ cat path/to/input.html | readability-cli - > path/to/output.json
```

Show help:
```console
$ readability-cli --help
```

Demo (using [`curl`](https://curl.se/) and [`jq`](https://jqlang.github.io/jq/)):
```console
$ curl --silent 'https://example.com/' | readability-cli - --sanitize | jq
{
  "title": "Example Domain",
  "byline": null,
  "dir": null,
  "lang": null,
  "content": "<div id=\"readability-page-1\" class=\"page\"><div>\n    \n    <p>This domain is for use in illustrative examples in documents. You may use this\n    domain in literature without prior coordination or asking for permission.</p>\n    <p><a href=\"https://www.iana.org/domains/example\">More information...</a></p>\n</div></div>",
  "textContent": "\n    \n    This domain is for use in illustrative examples in documents. You may use this\n    domain in literature without prior coordination or asking for permission.\n    More information...\n",
  "length": 191,
  "excerpt": "This domain is for use in illustrative examples in documents. You may use this\n    domain in literature without prior coordination or asking for permission.",
  "siteName": null,
  "publishedTime": null
}
```
npm package: @spaceduckapp/tiptap-converter-cli
Description: Convert from tiptap json to html and vice-versa
Author: The team at Spaceduck
Latest version: 1.0.0

# tiptap-converter-cli

A simple command-line utility for converting between [Tiptap](https://tiptap.dev)'s HTML and JSON document formats. Supports stdin and file input, and outputs to stdout.

## Features

- Convert Tiptap **JSON → HTML**
- Convert Tiptap **HTML → JSON**
- Read input from file or `stdin`
- Supports common Tiptap extensions including tables, colors, images, text styles, and links

## Installation

You can install this CLI globally via `npm`:

```bash
npm install -g @spaceduckapp/tiptap-converter-cli
```

## Usage

Using `stdin`:

```console
$ curl --silent "https://www.example.com" | tiptap-converter-cli -j | tiptap-converter-cli -h
<h1>Example Domain</h1><p>This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.</p><p><a target="_blank" rel="noopener noreferrer nofollow" href="https://www.iana.org/domains/example">More information...</a></p>
```

Help:

```console
$ tiptap-converter-cli --help
Usage: tiptap-converter-cli [options]

Options:
  --stdin           read the input from stdin. (default: true)
  -f --file <file>  read the input from file
  -h --to-html      Convert from json to html
  -j --to-json      Convert from html to json
  -V, --version     output the version number
  --help            display help for command
```