</>PackageGraphPackageGraph

es-set-tostringtag

npmv2.1.0TypeScript

A helper to optimistically set Symbol.toStringTag, when possible.

Adopt with care

es-set-tostringtag is usable, with caveats. Last published 616 days ago.

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

    No download data reported for this package yet.

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

    Last published 616 days ago.

  • BWeight: grade B, Good.

    Pulls in 12 transitive packages, about 193 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 es-set-tostringtag to a project.

4
Direct dependencies

Runtime packages this one declares itself.

12
Total installed

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

193 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 es-set-tostringtag, 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 es-set-tostringtag README.

var assert = require('assert');
var setToStringTag = require('es-set-tostringtag');

var obj = {};

assert.equal(Object.prototype.toString.call(obj), '[object Object]');

setToStringTag(obj, 'tagged!');

assert.equal(Object.prototype.toString.call(obj), '[object tagged!]');

Dependencies

Declared by es-set-tostringtag v2.1.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (16)

@arethetypeswrong/cli ^0.17.2@ljharb/eslint-config ^21.1.1@ljharb/tsconfig ^0.2.3@types/get-intrinsic ^1.2.3@types/has-symbols ^1.0.2@types/tape ^5.8.0auto-changelog ^2.5.0encoding ^0.1.13eslint =8.8.0evalmd ^0.0.19in-publish ^2.0.1npmignore ^0.3.1nyc ^10.3.2safe-publish-latest ^2.0.0tape ^5.9.0typescript next

Used by

Popular packages that depend on es-set-tostringtag.

Relationship graph

Dependencies (left) and dependents (right) of es-set-tostringtag.

Frequently installed together

Release history

1 release in the last two years, typically about 123 days apart.

Recent versions of es-set-tostringtag
VersionPublishedSizeLicense
2.1.0latest1 year ago14 KBMIT
2.0.32 years ago14 KBMIT
2.0.22 years ago9.3 KBMIT
2.0.13 years ago8.7 KBMIT
2.0.03 years ago8.3 KBMIT
1.0.03 years ago7.1 KBMIT

Overview

es-set-tostringtag is an npm package that a helper to optimistically set Symbol.toStringTag, when possible. It has 1 known dependents in the graph. The latest version is 2.1.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a helper to optimistically set Symbol.toStringTag, when possible 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 (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 es-set-tostringtag?

es-set-tostringtag is usable, with caveats. Last published 616 days ago.

How do I install es-set-tostringtag?

Run `npm install es-set-tostringtag` to add es-set-tostringtag to your npm project.

How many dependencies does es-set-tostringtag have?

es-set-tostringtag declares 20 direct dependencies and pulls in 12 packages in total once its runtime tree is resolved totalling about 193 KB on disk.

What license is es-set-tostringtag released under?

es-set-tostringtag is distributed under the MIT license.

How popular is es-set-tostringtag?

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

Is es-set-tostringtag still maintained?

The most recent release of es-set-tostringtag (v2.1.0) was published 1 year ago.

Does es-set-tostringtag run install scripts?

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