# getallelements

> get all html elements by one command

Latest version **1.0.3** (published 2019-12-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install getallelements
pnpm add getallelements
yarn add getallelements
bun add getallelements
```

## 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.3 |
| Published | 2019-12-23 |
| First published | 2019-12-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | sema0710 |
| Maintainers | sema0710 |
| Keywords | js, html, getElementsById |

## Links

- npm: https://www.npmjs.com/package/getallelements
- Repository: https://github.com/sema0710/getAllElements
- Homepage: https://github.com/sema0710/getAllElements#readme
- Issues: https://github.com/sema0710/getAllElements/issues
- npm.io page: https://npm.io/package/getallelements

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.3 (latest) — 2019-12-23
- 1.0.2 — 2019-12-20
- 1.0.1 — 2019-12-20
- 1.0.0 — 2019-12-20

## README

# getElementAll

## what is this?
this package help you when you do getElementById or getElementsByClass

```
import * as getAll from 'getelements'
getAll.getAllElementById(); // Get all the elements that have an ID
getAll.getAllElementByClass() // get all the elements that have an classes

```

## example

```
// index.html
<html lang="en">
  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta http-equiv="X-UA-Compatible" content="ie=edge">
      <title>Document</title>
  </head>
  <body>
      <div id="test1" class="test hi"></div>
      <div id="test2" class="test hi"></div>
      <div id="test3" class="test"></div>
      <div id="test4" class="test"></div>
  </body>
</html>

// index.js

import * as getAll from 'getelements'

getAll.getAllElementById();
/*
{
  test1:<div id="test1" class="test hi"></div>,
  test2:<div id="test2" class="test hi"></div>
  test3:<div id="test3" class="test"></div>
  test4:<div id="test4" class="test"></div>
}
*/

getAll.getAllElementByClass();
/*
  {
    hi:[
      <div id="test1" class="test hi"></div>
      <div id="test2" class="test hi"></div>
    ],
    test:[
      <div id="test1" class="test hi"></div>
      <div id="test2" class="test hi"></div>
      <div id="test3" class="test"></div>
      <div id="test4" class="test"></div>
    ]
  }
*/


getAll.getAllElementByTagName();

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