has-tostringtag
npmv1.0.2TypeScriptDetermine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.
Overview
has-tostringtag is an npm package that determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams. The latest version is 1.0.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of has-tostringtag.
Dependencies
Runtime (1)
Dev (14)
Used by
Popular packages that depend on has-tostringtag.
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
A helper to optimistically set Symbol.toStringTag, when possible.
string representations of objects in node and the browser
Is this an arguments object? It's a harder question than you think.
Is this value an ES BigInt?
Alternatives to has-tostringtag
`Object.defineProperty`, but not IE 8's broken one.
Which kind of boxed JS primitive is this?
A query library for ECMAScript AST using a CSS selector like query language.
Get and robustly cache all JS language-level intrinsics at first require time
A simple cache for a few of the JS Error constructors.
An Esprima-compatible JavaScript parser built on Acorn
Robustly `.call.bind()` a function
A robust, ES3 compatible, "has own property" predicate.
A JavaScript parser
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
An AST-based pattern checker for JavaScript.
Is this value a JS SharedArrayBuffer?
Frequently installed together
An AST-based pattern checker for JavaScript.
A robust, ES3 compatible, "has own property" predicate.
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
The semantic version parser used by npm.
the most correct and second fastest glob implementation in JavaScript
`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.
A simple cache for a few of the JS Error constructors.
string representations of objects in node and the browser
Modern Buffer API polyfill without footguns
Get and robustly cache all JS language-level intrinsics at first require time
Version history
| Version | Published | License |
|---|---|---|
| 1.0.2latest | 2 years ago | MIT |
| 1.0.1 | 2 years ago | MIT |
| 1.0.0 | 5 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install has-tostringtag?
Run `npm install has-tostringtag` to add has-tostringtag to your npm project.
What license is has-tostringtag released under?
has-tostringtag is distributed under the MIT license.
How popular is has-tostringtag?
has-tostringtag has approximately 0 downloads per week and 2 known dependent packages.