internal-slot
npmv1.1.0TypeScriptES spec-like internal slots
Overview
internal-slot is an npm package that eS spec-like internal slots. It is extremely widely used, with about 80.1M downloads per week and 1 known dependents in the graph. The latest version is 1.1.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need eS spec-like internal slots and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (80.1M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (20 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of internal-slot.
Dependencies
Dev (17)
Used by
Popular packages that depend on internal-slot.
Alternatives to internal-slot
Define a data property on an object. Will fall back to assignment in an engine without descriptors.
Robustly `.call.bind()` a function
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
Get and robustly cache all JS language-level intrinsics at first require time
A robust, ES3 compatible, "has own property" predicate.
ES Object-related atoms: Object, ToObject, RequireObjectCoercible
`Object.defineProperty`, but not IE 8's broken one.
An Esprima-compatible JavaScript parser built on Acorn
Store information about any JS value in a side channel. Uses WeakMap if available.
A query library for ECMAScript AST using a CSS selector like query language.
Create an ArrayBuffer instance from a Data URI string
Get paths for storing things like data, config, cache, etc
Frequently installed together
Version history
| Version | Published | License |
|---|---|---|
| 1.1.0latest | 1 year ago | MIT |
| 1.0.7 | 2 years ago | MIT |
| 1.0.6 | 2 years ago | MIT |
| 1.0.5 | 3 years ago | MIT |
| 1.0.4 | 3 years ago | MIT |
| 1.0.3 | 5 years ago | MIT |
| 1.0.2 | 6 years ago | MIT |
| 1.0.1 | 6 years ago | MIT |
| 1.0.0 | 6 years ago | MIT |
Maintainers
Frequently asked questions
How do I install internal-slot?
Run `npm install internal-slot` to add internal-slot to your npm project.
What license is internal-slot released under?
internal-slot is distributed under the MIT license.
How popular is internal-slot?
internal-slot has approximately 80,093,416 downloads per week and 1 known dependent packages.