</>PackageGraphPackageGraph

is-set

npmv2.0.3TypeScript

Is this value a JS Set? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

Adopt with care

is-set is usable, with caveats. Last published 915 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • DMaintenance: grade D, Poor — a real concern.

    Last published 915 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 19 KB installed.

  • 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 is-set to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

19 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >= 0.4
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the is-set README.

var isSet = require('is-set');
assert(!isSet(function () {}));
assert(!isSet(null));
assert(!isSet(function* () { yield 42; return Infinity; });
assert(!isSet(Symbol('foo')));
assert(!isSet(1n));
assert(!isSet(Object(1n)));

assert(!isSet(new Map()));
assert(!isSet(new WeakSet()));
assert(!isSet(new WeakMap()));

assert(isSet(new Set()));
Example truncated — see the full README.

is-set vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
is-setthis page01MIT2 years ago
is-map01MIT1 day ago
jsesc01MIT1 day ago
p-map01MIT1 day ago
p-locate216.9M1MIT1 day ago
@jridgewell/gen-mapping163.4M4MIT1 day ago

Dependencies

Declared by is-set v2.0.3. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (18)

@arethetypeswrong/cli ^0.15.0@ljharb/eslint-config ^21.1.0@types/for-each ^0.3.3@types/object-inspect ^1.8.4@types/tape ^5.6.4aud ^2.0.4auto-changelog ^2.4.0core-js ^2.6.12es5-shim ^4.6.7es6-shim ^0.35.8eslint =8.8.0for-each ^0.3.3in-publish ^2.0.1nyc ^10.3.2object-inspect ^1.13.1safe-publish-latest ^2.0.0tape ^5.7.5typescript next

Used by

Popular packages that depend on is-set.

Relationship graph

Dependencies (left) and dependents (right) of is-set.

es-get-iteratoris-set
is-set dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 1181 days apart.

Recent versions of is-set
VersionPublishedSizeLicense
2.0.3latest2 years ago19 KBMIT
2.0.25 years ago12 KBMIT
2.0.16 years ago9.6 KBMIT
2.0.06 years ago8.6 KBMIT
1.0.011 years agoMIT

Overview

is-set is an npm package that is this value a JS Set? This module works cross-realm/iframe, and despite ES6 @@toStringTag. It has 1 known dependents in the graph. The latest version is 2.0.3, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need is this value a JS Set? This module works cross-realm/iframe, and despite ES6 @@toStringTag and value a focused 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

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (18 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use is-set?

is-set is usable, with caveats. Last published 915 days ago.

How do I install is-set?

Run `npm install is-set` to add is-set to your npm project.

What license is is-set released under?

is-set is distributed under the MIT license.

How popular is is-set?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on is-set.

Is is-set still maintained?

The most recent release of is-set (v2.0.3) was published 2 years ago.

Does is-set run install scripts?

No. is-set does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.