# text-content

> A cross-browser function for getting and setting the text value of a DOM element.

Latest version **0.0.3** (published 2014-09-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install text-content
pnpm add text-content
yarn add text-content
bun add text-content
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2014-09-08 |
| First published | 2014-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Michael Rhodes |
| Maintainers | michaelrhodes |
| Keywords | textContent, innerText |

## Links

- npm: https://www.npmjs.com/package/text-content
- Repository: git@github.com:michaelrhodes/text-content
- Homepage: https://github.com/michaelrhodes/text-content
- Issues: https://github.com/michaelrhodes/text-content/issues
- npm.io page: https://npm.io/package/text-content

## Recent versions

- 0.0.3 (latest) — 2014-09-08
- 0.0.2 — 2014-04-14
- 0.0.1 — 2014-04-13
- 0.0.0 — 2014-04-11

## README

# text-content 
text-content is a cross-browser function for getting and setting the text value of a DOM element.

[![Build status](https://travis-ci.org/michaelrhodes/text-content.png?branch=master)](https://travis-ci.org/michaelrhodes/text-content)

[![Browser support](https://ci.testling.com/michaelrhodes/text-content.png)](https://ci.testling.com/michaelrhodes/text-content)

## Install
```
npm install text-content
```

### Example
``` js
var text = require('text-content')

var span = document.createElement('span')
text(span, 'Some text')

console.log(text(span))
// => Some text
```
It can also be used on the server with [mkdom](https://github.com/michaelrhodes/mkdom).

### License
[MIT](http://opensource.org/licenses/MIT)

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