# cheerio-create-text-node

> Add .createTextNode(text) functionality to [cheerio](https://www.npmjs.com/package/cheerio)

Latest version **2.0.0** (published 2022-05-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install cheerio-create-text-node
pnpm add cheerio-create-text-node
yarn add cheerio-create-text-node
bun add cheerio-create-text-node
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-05-24 |
| First published | 2017-08-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 19 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | bluelovers |
| Maintainers | bluelovers |
| Keywords | create-by-yarn-tool, create-by-tsdx |

## Links

- npm: https://www.npmjs.com/package/cheerio-create-text-node
- Repository: https://github.com/bluelovers/cheerio-create-text-node
- Homepage: https://github.com/bluelovers/cheerio-create-text-node#readme
- Issues: https://github.com/bluelovers/cheerio-create-text-node/issues
- npm.io page: https://npm.io/package/cheerio-create-text-node

## Recent versions

- 2.0.0 (latest) — 2022-05-24
- 1.0.0 — 2017-08-31

## README

# cheerio-create-text-node

Add .createTextNode(text) functionality to [cheerio](https://www.npmjs.com/package/cheerio)

## demo

```
import * as cheerio from 'cheerio';
import * as cheerioCreateTextNode from 'cheerio-create-text-node';

$ = cheerio.load('<ul>  <li></li>  </ul>');
cheerioCreateTextNode.use($);
```

### append

```
let text = $.createTextNode(123);
$('ul').append(text);
```

### appendTo

```
let text = $.createTextNode(123);
text.appendTo($('ul'));
```

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