</>PackageGraphPackageGraph

which-boxed-primitive

npmv1.1.1TypeScript

Which kind of boxed JS primitive is this?

Adopt with care

which-boxed-primitive is usable, with caveats. Last published 633 days ago. 2 releases in the last 2 years.

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

    No download data reported for this package yet.

  • CMaintenance: grade C, Fair — worth a look.

    Last published 633 days ago. 2 releases in the last 2 years.

  • BWeight: grade B, Good.

    Pulls in 6 transitive packages, about 36 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 which-boxed-primitive to a project.

5
Direct dependencies

Runtime packages this one declares itself.

6
Total installed

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

36 KB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

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

MIT

Every license you inherit by installing which-boxed-primitive, 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 which-boxed-primitive README.

var whichBoxedPrimitive = require('which-boxed-primitive');
var assert = require('assert');

// unboxed primitives return `null`
// boxed primitives return the builtin constructor name

assert.equal(whichBoxedPrimitive(undefined), null);
assert.equal(whichBoxedPrimitive(null), null);

assert.equal(whichBoxedPrimitive(false), null);
assert.equal(whichBoxedPrimitive(true), null);
assert.equal(whichBoxedPrimitive(new Boolean(false)), 'Boolean');
assert.equal(whichBoxedPrimitive(new Boolean(true)), 'Boolean');
Example truncated — see the full README.

which-boxed-primitive vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
which-boxed-primitivethis page01MIT1 year ago
es-define-property131.3M4MIT1 day ago
es-object-atoms01MIT1 day ago
define-data-property02MIT1 day ago
eslint138.4M279MIT1 day ago
call-bind80.7M5MIT1 day ago

Dependencies

Declared by which-boxed-primitive v1.1.1. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (5)

is-bigint ^1.1.0is-boolean-object ^1.2.1is-number-object ^1.1.1is-string ^1.1.1is-symbol ^1.1.1

Dev (18)

@arethetypeswrong/cli ^0.17.1@ljharb/eslint-config ^21.1.1@ljharb/tsconfig ^0.2.2@types/for-each ^0.3.3@types/object-inspect ^1.13.0@types/tape ^5.7.0auto-changelog ^2.5.0encoding ^0.1.13es-value-fixtures ^1.5.0eslint =8.8.0for-each ^0.3.3in-publish ^2.0.1npmignore ^0.3.1nyc ^10.3.2object-inspect ^1.13.3safe-publish-latest ^2.0.0tape ^5.9.0typescript next

Used by

Popular packages that depend on which-boxed-primitive.

Relationship graph

Dependencies (left) and dependents (right) of which-boxed-primitive.

is-bigintdeep-equalwhich-boxed-primi…
which-boxed-primitive dependencies dependents

Frequently installed together

Release history

2 releases in the last two years, typically about 492 days apart.

Recent versions of which-boxed-primitive
VersionPublishedSizeLicense
1.1.1latest1 year ago19 KBMIT
1.1.01 year ago18 KBMIT
1.0.25 years ago15 KBMIT
1.0.17 years ago20 KBMIT
1.0.07 years ago19 KBMIT

Overview

which-boxed-primitive is an npm package that which kind of boxed JS primitive is this?. It has 1 known dependents in the graph. The latest version is 1.1.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need which kind of boxed JS primitive is this? 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 (23 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 which-boxed-primitive?

which-boxed-primitive is usable, with caveats. Last published 633 days ago. 2 releases in the last 2 years.

How do I install which-boxed-primitive?

Run `npm install which-boxed-primitive` to add which-boxed-primitive to your npm project.

How many dependencies does which-boxed-primitive have?

which-boxed-primitive declares 23 direct dependencies and pulls in 6 packages in total once its runtime tree is resolved totalling about 36 KB on disk.

What license is which-boxed-primitive released under?

which-boxed-primitive is distributed under the MIT license.

How popular is which-boxed-primitive?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on which-boxed-primitive.

Is which-boxed-primitive still maintained?

The most recent release of which-boxed-primitive (v1.1.1) was published 1 year ago.

Does which-boxed-primitive run install scripts?

No. which-boxed-primitive does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.