New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

text-content

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-content

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

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

text-content

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

Build status

Browser support

Install

npm install text-content

Example

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.

License

MIT

Keywords

textContent

FAQs

Package last updated on 08 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts