Skip to content
JS
Package

component-type

Type assertions aka less-broken `typeof`

v2.0.0, 16 Nov 2023MITCommonJSTypes: Bundled
$ npm install component-type

Key numbers

As of 25 Sept 2026
Weekly downloads
2m
+61% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v2.0.0
GitHub stars
96
21 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
1

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3mSept 2025Mar 2026Sept 2026High 2.8m (25 Aug 2026)Low 771.4k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

2,044,158 downloads last week, 9,904,918 in the last month. The 12-month change of +61% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
06 in total
Latest version
2.0.0, 16 Nov 20232 years ago
First published
6 Jan 2014
Last push to GitHub
18 Sept 20266 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
1
Dependents on npm
150

Major versions

  1. v2 first release 2.0.0, 16 Nov 2023
  2. v1 first release 1.0.0, 6 Jan 2014

Recent releases

VersionPublished
2.0.016 Nov 2023
1.2.216 Nov 2023
1.2.115 Mar 2016
1.2.016 Sept 2015
1.1.08 Dec 2014
1.0.06 Jan 2014
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18
Runtimes
-
Unpacked size (npm)
4.0 kB
Dependencies (0)
None
npm install component-type
  • jsDelivrhttps://cdn.jsdelivr.net/npm/component-type@2.0.0/
  • unpkghttps://unpkg.com/component-type@2.0.0/
  • esm.shhttps://esm.sh/component-type@2.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.