0.0.1 • Published 11 months ago

@dndxdnd/strip-html v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

strip-html

A simple tool to remove HTML tags from a string / HTML file. Use rehype-retext under the hood.

Usage

require Node.js >= 20

CLI

# basic
strip-html <file>

# specify output
strip-html <file> -o <output-file>

Node.js

import { stripHtml } from '@dndxdnd/strip-html'

const striped = await stripHtml('<p>Hello, world!</p>')
console.log(striped) // 'Hello, world!'