type-fest
npmv5.9.0TypeScriptA collection of essential TypeScript types
Safe to adopt
Yes — type-fest scores well across adoption, maintenance, weight, supply chain, and licensing. 385.6M downloads per week and 6 known dependents. Last published 10 days ago. 39 releases in the last 2 years.
- AAdoption: grade A, Excellent.
385.6M downloads per week and 6 known dependents.
- AMaintenance: grade A, Excellent.
Last published 10 days ago. 39 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 1 transitive package, about 563 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
(MIT OR CC0-1.0) — 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 type-fest 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.
Licenses in the dependency tree
Every license you inherit by installing type-fest, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=20
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the type-fest README.
import type {Except} from 'type-fest';
type Foo = {
unicorn: string;
rainbow: boolean;
};
type FooWithoutRainbow = Except<Foo, 'rainbow'>;
//=> {unicorn: string}type-fest vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| type-festthis page | 385.6M | 6 | (MIT OR CC0-1.0) | 10 days ago |
| json-schema-typed | 0 | 1 | BSD-2-Clause | 6 days ago |
| csstype | 160.9M | 2 | MIT | 5 days ago |
| ts-node | 49.4M | 38 | MIT | 6 days ago |
| meow | 42.8M | 1 | MIT | 5 days ago |
| drizzle-orm | 20.3M | 0 | Apache-2.0 | 6 days ago |
Dependencies
Declared by type-fest v5.9.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (13)
Used by
Popular packages that depend on type-fest.
CLI app helper
Serialize/deserialize an error into a plain object
Seamless REST/GraphQL API mocking library for browser and Node.js.
Parse JSON with more helpful errors
Find apps installed on your system. This util will help to find executables of a known app like Chrome, Firefox,... on Windows, Linux, and macOS out of the box.
Parses every stack trace into a nicely formatted array of hashes.
Relationship graph
Dependencies (left) and dependents (right) of type-fest.
Frequently installed together
Prettier is an opinionated code formatter
An extremely fast JavaScript and CSS bundler and minifier.
the mighty option parser used by yargs
Express style path to RegExp utility
An HTTP/1.1 client, written from scratch for Node.js
An AST-based pattern checker for JavaScript.
Fast, unopinionated, minimalist web framework
Promise based HTTP client for the browser and node.js
Indent each line in a string
Next generation testing framework powered by Vite
Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
Release history
34 releases in the last two years, typically about 21 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 5.9.0latest | 10 days ago | 561 KB | (MIT OR CC0-1.0) |
| 5.8.0 | 2 months ago | 556 KB | (MIT OR CC0-1.0) |
| 5.7.0 | 3 months ago | 546 KB | (MIT OR CC0-1.0) |
| 5.6.0 | 4 months ago | 538 KB | (MIT OR CC0-1.0) |
| 5.5.0 | 5 months ago | 527 KB | (MIT OR CC0-1.0) |
| 5.4.4 | 7 months ago | 512 KB | (MIT OR CC0-1.0) |
| 5.4.3 | 7 months ago | 512 KB | (MIT OR CC0-1.0) |
| 5.4.2 | 7 months ago | 513 KB | (MIT OR CC0-1.0) |
| 5.4.1 | 7 months ago | 512 KB | (MIT OR CC0-1.0) |
| 5.4.0 | 8 months ago | 512 KB | (MIT OR CC0-1.0) |
| 5.3.1 | 9 months ago | 499 KB | (MIT OR CC0-1.0) |
| 5.3.0 | 9 months ago | 499 KB | (MIT OR CC0-1.0) |
| 5.2.0 | 10 months ago | 495 KB | (MIT OR CC0-1.0) |
| 5.1.0 | 11 months ago | 486 KB | (MIT OR CC0-1.0) |
| 5.0.1 | 11 months ago | 471 KB | (MIT OR CC0-1.0) |
Overview
type-fest is an npm package that a collection of essential TypeScript types. It is extremely widely used, with about 385.6M downloads per week and 6 known dependents in the graph. The latest version is 5.9.0, released under the (MIT OR CC0-1.0) license.
Who should use it
Teams working in the npm ecosystem who need a collection of essential TypeScript types and value a battle-tested, widely-adopted 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
- Large, well-established user base (385.6M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license ((MIT OR CC0-1.0)).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use type-fest?
Yes — type-fest scores well across adoption, maintenance, weight, supply chain, and licensing. 385.6M downloads per week and 6 known dependents. Last published 10 days ago. 39 releases in the last 2 years.
How do I install type-fest?
Run `npm install type-fest` to add type-fest to your npm project.
How many dependencies does type-fest have?
type-fest declares 14 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 563 KB on disk.
What license is type-fest released under?
type-fest is distributed under the (MIT OR CC0-1.0) license.
How popular is type-fest?
type-fest has approximately 385,587,178 downloads per week and 6 known dependent packages.
Is type-fest still maintained?
The most recent release of type-fest (v5.9.0) was published 10 days ago.
Does type-fest run install scripts?
No. type-fest does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.