# htmltotxt

> HTML text extracter/HTML to txt transpiler

Latest version **1.0.3** (published 2021-08-31) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install htmltotxt
pnpm add htmltotxt
yarn add htmltotxt
bun add htmltotxt
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-08-31 |
| First published | 2021-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | brian219 |
| Maintainers | brian219 |

## Links

- npm: https://www.npmjs.com/package/htmltotxt
- npm.io page: https://npm.io/package/htmltotxt

## Recent versions

- 1.0.3 (latest) — 2021-08-31
- 1.0.2 — 2021-08-31
- 1.0.1 — 2021-08-31
- 1.0.0 — 2021-08-31

## README

# htmltotxt
## Super basic HTML text parser

htmltotxt is super basic node.js app that can take in html files saved on your directory and it extracts the text out of them then saves it as a .txt file in your folder.

## Features

- Takes in a saved .html file and it spits a .txt file with just the text and none of the nodes

## Tech

- [node.js] - js for all

## Installation

htmltotxt requires [Node.js](https://nodejs.org/) v10+ to run.

```sh
npm i
```
## Usage
```
import { parser, generator } from "htmltotxt";

/* parser returns plain text extracted from the html file and generator 
creates .txt files based on any string passed to it. They can be used 
together as seen below or separately */

generator(parser('./test.html'));
```
## Contributions

I have not planned ahead much for this project but if anyone wants to contribute please feel free to make a pull request.

---
_Source: https://npm.io/package/htmltotxt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
