type-detect
npmv4.1.0Improved typeof detection for node.js and the browser.
Overview
type-detect is an npm package that improved typeof detection for node.js and the browser. The latest version is 4.1.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need improved typeof detection for node.js and the browser and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- Large dependency tree (34 direct dependencies) increases install size and audit surface.
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of type-detect.
Dependencies
Dev (34)
Used by
Popular packages that depend on type-detect.
Alternatives to type-detect
Media Type Database
The ultimate javascript content-type utility.
Implements the WebIDL algorithms for converting to and from JavaScript values
Infer the content-type of a request.
Type definitions and documentation for Bun, an incredibly fast JavaScript runtime
type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.
A collection of essential TypeScript types
Check if a value is a plain object
Check if something is a generator function
JSON Schema TypeScript definitions with complete inline documentation.
all the types of nodes in htmlparser2's dom
TypeScript-first schema declaration and validation library with static type inference
Frequently installed together
Version history
| Version | Published | License |
|---|---|---|
| 4.1.0latest | 2 years ago | MIT |
| 4.0.8 | 8 years ago | MIT |
| 4.0.7 | 8 years ago | MIT |
| 4.0.6 | 8 years ago | MIT |
| 4.0.5 | 8 years ago | MIT |
| 4.0.3 | 9 years ago | MIT |
| 4.0.2 | 9 years ago | MIT |
| 4.0.1 | 9 years ago | MIT |
| 4.0.0 | 9 years ago | MIT |
| 3.0.0 | 9 years ago | MIT |
| 2.0.2 | 10 years ago | MIT |
| 2.0.1 | 10 years ago | MIT |
| 2.0.0 | 10 years ago | MIT |
| 1.0.0 | 11 years ago | MIT |
| 0.1.2 | 12 years ago | MIT |
| 0.1.1 | 12 years ago | MIT |
| 0.1.0 | 13 years ago | MIT |
Maintainers
Frequently asked questions
How do I install type-detect?
Run `npm install type-detect` to add type-detect to your npm project.
What license is type-detect released under?
type-detect is distributed under the MIT license.
How popular is type-detect?
type-detect has approximately 0 downloads per week and 1 known dependent packages.