internal-slot
npmv1.1.0TypeScriptES spec-like internal slots
Adopt with care
internal-slot is usable, with caveats. Last published 635 days ago.
- AAdoption: grade A, Excellent.
79.2M downloads per week and 1 known dependents.
- CMaintenance: grade C, Fair — worth a look.
Last published 635 days ago.
- BWeight: grade B, Good.
Pulls in 17 transitive packages, about 368 KB installed (at least — some of the tree is still being crawled).
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — 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 internal-slot 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.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing internal-slot, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >= 0.4
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the internal-slot README.
var SLOT = require('internal-slot');
var assert = require('assert');
var o = {};
assert.throws(function () { SLOT.assert(o, 'foo'); });
assert.equal(SLOT.has(o, 'foo'), false);
assert.equal(SLOT.get(o, 'foo'), undefined);
SLOT.set(o, 'foo', 42);
assert.equal(SLOT.has(o, 'foo'), true);
assert.equal(SLOT.get(o, 'foo'), 42);internal-slot 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 |
|---|---|---|---|---|
| internal-slotthis page | 79.2M | 1 | MIT | 1 year ago |
| call-bind | 80.7M | 5 | MIT | 1 day ago |
| get-intrinsic | 0 | 8 | MIT | 1 day ago |
| define-data-property | 0 | 2 | MIT | 1 day ago |
| call-bound | 0 | 7 | MIT | 1 day ago |
| eslint | 138.4M | 279 | MIT | 1 day ago |
Dependencies
Declared by internal-slot v1.1.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (17)
Used by
Popular packages that depend on internal-slot.
Relationship graph
Dependencies (left) and dependents (right) of internal-slot.
Frequently installed together
Release history
1 release in the last two years, typically about 253 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.1.0latest | 1 year ago | 22 KB | MIT |
| 1.0.7 | 2 years ago | 20 KB | MIT |
| 1.0.6 | 2 years ago | 20 KB | MIT |
| 1.0.5 | 3 years ago | 19 KB | MIT |
| 1.0.4 | 3 years ago | 18 KB | MIT |
| 1.0.3 | 5 years ago | 15 KB | MIT |
| 1.0.2 | 6 years ago | 22 KB | MIT |
| 1.0.1 | 6 years ago | 21 KB | MIT |
| 1.0.0 | 6 years ago | 21 KB | MIT |
Overview
internal-slot is an npm package that eS spec-like internal slots. It is extremely widely used, with about 79.2M 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 (79.2M 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.
Maintainers
Frequently asked questions
Should I use internal-slot?
internal-slot is usable, with caveats. Last published 635 days ago.
How do I install internal-slot?
Run `npm install internal-slot` to add internal-slot to your npm project.
How many dependencies does internal-slot have?
internal-slot declares 20 direct dependencies and pulls in 17 packages in total once its runtime tree is resolved totalling about 368 KB on disk.
What license is internal-slot released under?
internal-slot is distributed under the MIT license.
How popular is internal-slot?
internal-slot has approximately 79,188,454 downloads per week and 1 known dependent packages.
Is internal-slot still maintained?
The most recent release of internal-slot (v1.1.0) was published 1 year ago.
Does internal-slot run install scripts?
No. internal-slot does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.