Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeremenichelli/empty
Light weight script to clean a node's content
https://github.com/jeremenichelli/empty
Last synced: 16 days ago
JSON representation
Light weight script to clean a node's content
- Host: GitHub
- URL: https://github.com/jeremenichelli/empty
- Owner: jeremenichelli
- License: mit
- Created: 2015-08-29T19:23:46.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-29T03:53:32.000Z (about 9 years ago)
- Last Synced: 2024-10-11T13:34:51.807Z (about 1 month ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# empty [![Build Status](https://travis-ci.org/jeremenichelli/empty.svg)](https://travis-ci.org/jeremenichelli/empty)
Fastest and cross-browsing way to clean the content in a node.
## Install
If you want to use ```empty```in your project you can just add a script tag to it.
```
```
## Use
```js
var node = document.getElementById('sample');empty(node);
```