es-set-tostringtag
npmv2.1.0TypeScriptA 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.
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 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)
Used by
Popular packages that depend on es-set-tostringtag.
Relationship graph
Dependencies (left) and dependents (right) of es-set-tostringtag.
Frequently installed together
The ultimate javascript content-type utility.
An AST-based pattern checker for JavaScript.
Simplified HTTP request client.
A robust, ES3 compatible, "has own property" predicate.
Cross platform child_process#spawn and child_process#spawnSync
The semantic version parser used by npm.
A stream that emits multiple other streams one after another.
Release history
1 release in the last two years, typically about 123 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.1.0latest | 1 year ago | 14 KB | MIT |
| 2.0.3 | 2 years ago | 14 KB | MIT |
| 2.0.2 | 2 years ago | 9.3 KB | MIT |
| 2.0.1 | 3 years ago | 8.7 KB | MIT |
| 2.0.0 | 3 years ago | 8.3 KB | MIT |
| 1.0.0 | 3 years ago | 7.1 KB | MIT |
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.