
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
get-symbol-description
Advanced tools
Gets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.
Gets the description of a Symbol. Handles Symbol()
vs Symbol('')
properly when possible.
var getSymbolDescription = require('get-symbol-description');
var assert = require('assert');
assert(getSymbolDescription(Symbol()) === undefined);
assert(getSymbolDescription(Symbol('')) === ''); // or `undefined`, if in an engine that lacks name inference from concise method
assert(getSymbolDescription(Symbol('foo')) === 'foo');
assert(getSymbolDescription(Symbol.iterator) === 'Symbol.iterator');
Simply clone the repo, npm install
, and run npm test
v1.1.0 - 2024-12-17
b957b65
bfbcae2
@ljharb/eslint-config
, auto-changelog
, es-value-fixtures
, object-inspect
, tape [
197ba80`](https://github.com/inspect-js/get-symbol-description/commit/197ba80ef87153e28f20ec353e8b926ddb145da0)call-bound
directly 9df4de4
call-bind
, get-intrinsic
44c1400
hasown
, tape
44e2264
aud
with npm audit
62d9414
call-bind
396ee27
cc4b9eb
FAQs
Gets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.
The npm package get-symbol-description receives a total of 32,890,300 weekly downloads. As such, get-symbol-description popularity was classified as popular.
We found that get-symbol-description demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.