# sektor

> A slim alternative to jQuery's Sizzle

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

## Install

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

## 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.1.5 |
| Published | 2016-10-12 |
| First published | 2014-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 66 |
| Author | Nicolas Bevacqua |
| Maintainers | bevacqua |

## Links

- npm: https://www.npmjs.com/package/sektor
- Repository: https://github.com/bevacqua/sektor
- Issues: https://github.com/bevacqua/sektor/issues
- npm.io page: https://npm.io/package/sektor

## Recent versions

- 1.1.5 (latest) — 2016-10-12
- 1.1.4 — 2015-08-25
- 1.1.3 — 2015-08-22
- 1.1.2 — 2014-09-15
- 1.1.1 — 2014-09-01
- 1.1.0 — 2014-09-01
- 1.0.1 — 2014-08-29
- 1.0.0 — 2014-08-29

## README

![sektor.png][5]

> A slim alternative to jQuery's [Sizzle][1]

Sektor has a smaller footprint than that of [Sizzle][1]. <span>Sektor is [**836B**][3]</span> minified and gzipped, vs <span>the [**7.01kB**][2] in Sizzle</span>.

This is the selector engine used in [Dominus][4].

# Install

```shell
npm install sektor --save
```

```shell
bower install sektor --save
```

# Usage

The public API exposed by `sektor` mirrors the API in [Sizzle][1]. This means `sektor` is a drop-in replacement for [Sizzle][1].

# Drawbacks

Sektor has a few drawbacks when compared against [Sizzle][1]. The following features are **missing in `sektor`, but available in [Sizzle][1]**. If you want any of these, use [Sizzle][1] instead!

##### Missing features

Sektor lacks support for custom state-based selectors popularized by Sizzle, such as `:visible`, `:first`, and so on.

While [Sizzle][1] fixes a few cross-browser incompatibilities by providing their own full-blown selection engine, Sektor doesn't fix all of them. You can check the complete list of cross-browser incompatibilities Sizzle fixes [in their source code][6].

Sektor _does_ correct the behavior in `.querySelectorAll` [for context-rooted queries][7].

##### Features I'm glad are missing

I consider these "features" bloat, and thus they aren't implemented in `sektor`.

* Attribute not equal selector
* Positional selectors (`:first`; `:eq(n)`; `:odd`; etc.)
* Type selectors (`:input`; `:checkbox`; `:button`; etc.)
* `:has(selector)`
* Complex negations `:not(complex selector)`
* Adding custom selectors via Sizzle extensions
* Reliable functionality on XML fragments
* Matching against non-elements
* Reliable sorting of disconnected nodes

# License

MIT

[1]: https://github.com/jquery/sizzle
[2]: https://github.com/jquery/sizzle/blob/master/dist/sizzle.min.js
[3]: https://github.com/bevacqua/sektor/blob/master/dist/sektor.min.js
[4]: https://github.com/bevacqua/dominus
[5]: https://raw.githubusercontent.com/bevacqua/sektor/master/resources/sektor.png
[6]: https://github.com/jquery/sizzle/blob/5bc4454a18b859025cbb8480c70bd3b7ec623ac0/src/sizzle.js#L602-L676
[7]: http://ejohn.org/blog/thoughts-on-queryselectorall/

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