# remove-elements

> Removes elements from the DOM by CSS selector

Latest version **0.1.0** (published 2014-03-21) · BSD license · 0 weekly downloads

## Install

```sh
npm install remove-elements
pnpm add remove-elements
yarn add remove-elements
bun add remove-elements
```

## 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.1.0 |
| Published | 2014-03-21 |
| First published | 2014-03-21 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | max ogden |
| Maintainers | maxogden |

## Links

- npm: https://www.npmjs.com/package/remove-elements
- Repository: https://github.com/maxogden/remove-elements
- Issues: https://github.com/maxogden/remove-elements/issues
- npm.io page: https://npm.io/package/remove-elements

## Dependencies (1)

- [remove-element](https://npm.io/package/remove-element.md) 0.0.0

## Recent versions

- 0.1.0 (latest) — 2014-03-21
- 0.0.1 — 2014-03-21

## README

# remove-elements 

Removes elements from the DOM by CSS selector. Very simple but helps reduce a bit of
boilerplate and might spare somebody some Googling if they forget.

Uses https://github.com/hughsk/remove-element by @hughsk

[![testling badge](https://ci.testling.com/maxogden/remove-elements.png)](https://ci.testling.com/maxogden/remove-elements)

## Usage

[![remove-elements](https://nodei.co/npm/remove-elements.png)](https://nodei.co/npm/remove-elements)

### `remove(cssSelectorString, [scope])`

Removes all matching elements from the DOM, if they are attached.
If `scope` is defined it uses `scope.querySelectorAll` otherwise `document.querySelectorAll`.

## License

BSD

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