# inner-text-shim

> innerText shim for browsers, that don't support it.

Latest version **1.0.1** (published 2015-03-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install inner-text-shim
pnpm add inner-text-shim
yarn add inner-text-shim
bun add inner-text-shim
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-03-26 |
| First published | 2015-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Andi Neck |
| Maintainers | andineck |
| Keywords | innerText, Shim |

## Links

- npm: https://www.npmjs.com/package/inner-text-shim
- Repository: https://github.com/intesso/inner-text-shim
- Issues: https://github.com/intesso/inner-text-shim/issues
- npm.io page: https://npm.io/package/inner-text-shim

## Recent versions

- 1.0.1 (latest) — 2015-03-26
- 1.0.0 — 2015-03-26

## README

# inner-text-shim

innerText shim for browsers, that don't support it.


This module is meant to use in the browser with browserify.
if you need a polyfill, use: [innerText-polyfill](https://github.com/duckinator/innerText-polyfill)

# usage

all innerText does is get the `el.innerText` from the `element`, even when the browser does not support it.
you can't set the `innerText` with this module.

```js
var innerText = require('inner-text-shim');
var el = document.querySelector('body');
el.innerHTML = '<p>hello</p><br/>welt'

var text = innerText(el)


/* text ->
"hello


welt"
/*
```

# license
MIT

# credit
 - https://github.com/duckinator/innerText-polyfill

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