A simple tool to remove HTML tags from a string / HTML file. Use rehype-retext under the hood.
require Node.js >= 20
# basic
strip-html <file>
# specify output
strip-html <file> -o <output-file>
import { stripHtml } from '@dndxdnd/strip-html'
const striped = await stripHtml('<p>Hello, world!</p>')
console.log(striped) // 'Hello, world!'