get-intrinsic
npmv1.3.0Get and robustly cache all JS language-level intrinsics at first require time
Overview
get-intrinsic is an npm package that get and robustly cache all JS language-level intrinsics at first require time. The latest version is 1.3.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need get and robustly cache all JS language-level intrinsics at first require time 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 (28 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 get-intrinsic.
Dependencies
Runtime (10)
Dev (18)
Used by
Popular packages that depend on get-intrinsic.
Get an iterator for any JS language value. Works robustly across all environments, all versions.
node's assert.deepEqual algorithm
Store information about any JS value in a side channel, using a Map
Store information about any JS value in a side channel. Uses WeakMap if available.
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
Robustly `.call.bind()` a function
A helper to optimistically set Symbol.toStringTag, when possible.
Set a function's length property
Alternatives to get-intrinsic
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
Robustly `.call.bind()` a function
`Object.defineProperty`, but not IE 8's broken one.
Which kind of boxed JS primitive is this?
A simple cache for a few of the JS Error constructors.
An Esprima-compatible JavaScript parser built on Acorn
Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.
A robust, ES3 compatible, "has own property" predicate.
A JavaScript parser
A query library for ECMAScript AST using a CSS selector like query language.
An AST-based pattern checker for JavaScript.
Is this an arguments object? It's a harder question than you think.
Frequently installed together
An AST-based pattern checker for JavaScript.
string representations of objects in node and the browser
A simple cache for a few of the JS Error constructors.
Robustly `.call.bind()` a function
Is this an arguments object? It's a harder question than you think.
Helper functions around Function call/apply/bind, for use in `call-bind`
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.
Array#isArray for older browsers
The semantic version parser used by npm.
`Object.defineProperty`, but not IE 8's broken one.
Store information about any JS value in a side channel. Uses WeakMap if available.
Version history
| Version | Published | License |
|---|---|---|
| 1.3.1 | 9 months ago | MIT |
| 1.3.0latest | 1 year ago | MIT |
| 1.2.7 | 1 year ago | MIT |
| 1.2.6 | 1 year ago | MIT |
| 1.2.5 | 1 year ago | MIT |
| 1.2.4 | 2 years ago | MIT |
| 1.2.3 | 2 years ago | MIT |
| 1.2.2 | 2 years ago | MIT |
| 1.2.1 | 3 years ago | MIT |
| 1.2.0 | 3 years ago | MIT |
| 1.1.3 | 3 years ago | MIT |
| 1.1.2 | 4 years ago | MIT |
| 1.1.1 | 5 years ago | MIT |
| 1.1.0 | 5 years ago | MIT |
| 1.0.2 | 5 years ago | MIT |
| 1.0.1 | 5 years ago | MIT |
| 1.0.0 | 5 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install get-intrinsic?
Run `npm install get-intrinsic` to add get-intrinsic to your npm project.
What license is get-intrinsic released under?
get-intrinsic is distributed under the MIT license.
How popular is get-intrinsic?
get-intrinsic has approximately 0 downloads per week and 5 known dependent packages.