</>PackageGraphPackageGraph

is-map

npmv2.0.3TypeScript

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

Adopt with care

is-map 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 20 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-map 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.

20 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-map README.

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

assert(!isMap(new Set()));
assert(!isMap(new WeakSet()));
assert(!isMap(new WeakMap()));

assert(isMap(new Map()));
Example truncated — see the full README.

is-map 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-mapthis page01MIT2 years ago
is-set01MIT1 day ago
jsesc01MIT1 day ago
p-map01MIT1 day ago
p-locate216.9M1MIT1 day ago
@jridgewell/gen-mapping163.4M4MIT1 day ago

Dependencies

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

Dev (19)

@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.1npmignore ^0.3.1nyc ^10.3.2object-inspect ^1.13.1safe-publish-latest ^2.0.0tape ^5.7.5typescript ^5.5.0-dev.20240308

Used by

Popular packages that depend on is-map.

Relationship graph

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

es-get-iteratoris-map
is-map dependencies dependents

Frequently installed together

Release history

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

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

Overview

is-map is an npm package that is this value a JS Map? 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 Map? 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 (19 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-map?

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

How do I install is-map?

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

What license is is-map released under?

is-map is distributed under the MIT license.

How popular is is-map?

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

Is is-map still maintained?

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

Does is-map run install scripts?

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