# class-name-starting-with

> Finds all elements with matching class name starting with a string prefix.

Latest version **1.0.0** (published 2016-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install class-name-starting-with
pnpm add class-name-starting-with
yarn add class-name-starting-with
bun add class-name-starting-with
```

## 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.0 |
| Published | 2016-10-10 |
| First published | 2016-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Emil Johansson |
| Maintainers | emiljohansson |
| Keywords | windows, os |

## Links

- npm: https://www.npmjs.com/package/class-name-starting-with
- Repository: https://github.com/emiljohansson/class-name-starting-with
- Homepage: https://github.com/emiljohansson/class-name-starting-with#readme
- Issues: https://github.com/emiljohansson/class-name-starting-with/issues
- npm.io page: https://npm.io/package/class-name-starting-with

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-10-10

## README

# class-name-starting-with

> Finds all element starting with `string`. Queries the DOM for '[class*="string"]'.

## Usage

```js
var classNameStartingWith = require('class-name-starting-with');
classNameStartingWith('prefix__', el);
// => [HTMLElement]
```

## API

### classNameStartingWith(string, rootElement)

Returns an array with the elements with class name matching `string`.

#### string

Type: `string`

#### rootElement

Type: `undefined`, `HTMLElement`

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