typed-query-selector
npmv2.12.2TypeScriptBetter typed `querySelector` and `querySelectorAll`.
Safe to adopt
Yes — typed-query-selector scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 139 days ago. 2 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 139 days ago. 2 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 19 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding typed-query-selector to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the typed-query-selector README.
import 'typed-query-selector'
document.querySelector('div#app') // ==> HTMLDivElement
document.querySelector('div#app > form#login') // ==> HTMLFormElement
document.querySelectorAll('span.badge') // ==> NodeListOf<HTMLSpanElement>
anElement.querySelector('button#submit') // ==> HTMLButtonElementDependencies
Declared by typed-query-selector v2.12.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (5)
Used by
Popular packages that depend on typed-query-selector.
Relationship graph
Dependencies (left) and dependents (right) of typed-query-selector.
Frequently installed together
Reactive Extensions for modern JavaScript
TypeScript definitions for node
TypeScript definitions for ws
Polyfill for the URLPattern API
Download and launch browsers
This repository contains TypeScript types conforming to the [WebDriver BiDi](https://w3c.github.io/webdriver-bidi/) specification. It also supports WebDriver BiDi extension modules defined in other specifications:
An implementation of the WebDriver BiDi protocol for Chromium implemented as a JavaScript layer translating between BiDi and CDP, running inside a Chrome tab.
The Chrome DevTools Protocol JSON
Release history
2 releases in the last two years, typically about 26 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.12.2latest | 4 months ago | 19 KB | MIT |
| 2.12.1 | 6 months ago | 19 KB | MIT |
| 2.12.0 | 2 years ago | 19 KB | MIT |
| 2.11.4 | 2 years ago | 19 KB | MIT |
| 2.11.3 | 2 years ago | 19 KB | MIT |
| 2.11.2 | 2 years ago | 18 KB | MIT |
| 2.11.1 | 2 years ago | 18 KB | MIT |
| 2.11.0 | 3 years ago | 18 KB | MIT |
| 2.10.1 | 3 years ago | 18 KB | MIT |
| 2.10.0 | 3 years ago | 18 KB | MIT |
| 2.9.2 | 3 years ago | 21 KB | MIT |
| 2.9.1 | 3 years ago | 20 KB | MIT |
| 2.9.0 | 3 years ago | 20 KB | MIT |
| 2.8.1 | 3 years ago | 17 KB | MIT |
| 2.8.0 | 4 years ago | 17 KB | MIT |
Overview
typed-query-selector is an npm package that better typed `querySelector` and `querySelectorAll`. It has 1 known dependents in the graph. The latest version is 2.12.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need better typed `querySelector` and `querySelectorAll` and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use typed-query-selector?
Yes — typed-query-selector scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 139 days ago. 2 releases in the last 2 years.
How do I install typed-query-selector?
Run `npm install typed-query-selector` to add typed-query-selector to your npm project.
What license is typed-query-selector released under?
typed-query-selector is distributed under the MIT license.
How popular is typed-query-selector?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on typed-query-selector.
Is typed-query-selector still maintained?
The most recent release of typed-query-selector (v2.12.2) was published 4 months ago.
Does typed-query-selector run install scripts?
No. typed-query-selector does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.