@dndxdnd/strip-html
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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!'

Readme

Keywords

none

Package Sidebar

Install

npm i @dndxdnd/strip-html

Weekly Downloads

3

Version

0.0.1

License

MIT

Unpacked Size

22.8 kB

Total Files

9

Last publish

Collaborators

  • dndxdnd