{"_id":"get-symbol-description","_rev":"3744972","name":"get-symbol-description","description":"Gets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2025-02-13T06:28:07.000Z","created":"2021-08-17T22:22:05.245Z","1.1.0":"2024-12-17T16:51:13.098Z","1.0.2":"2024-02-07T22:22:12.082Z","1.0.1":"2024-02-06T02:07:11.770Z","1.0.0":"2021-08-17T22:22:05.245Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/get-symbol-description.git"},"versions":{"1.1.0":{"name":"get-symbol-description","version":"1.1.0","description":"Gets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.","main":"index.js","exports":{".":"./index.js","./getInferredName":"./getInferredName.js","./package.json":"./package.json"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","prelint":"evalmd README.md","lint":"eslint --ext=.js,.mjs .","postlint":"tsc && attw -P","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"npx npm@'>= 10.2' audit --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/inspect-js/get-symbol-description.git"},"keywords":["symbol","ecmascript","javascript","description"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/inspect-js/get-symbol-description/issues"},"homepage":"https://github.com/inspect-js/get-symbol-description#readme","dependencies":{"call-bound":"^1.0.3","es-errors":"^1.3.0","get-intrinsic":"^1.2.6"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.2","@types/for-each":"^0.3.3","@types/get-intrinsic":"^1.2.3","@types/object-inspect":"^1.13.0","@types/tape":"^5.7.0","auto-changelog":"^2.5.0","encoding":"^0.1.13","es-value-fixtures":"^1.5.0","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","hasown":"^2.0.2","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.3","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"^5.8.0-dev.20241216"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"get-symbol-description@1.1.0","gitHead":"1489d87a1af261f0f90faa73c619090363f7976b","types":"./index.d.ts","_nodeVersion":"23.4.0","_npmVersion":"10.9.2","dist":{"shasum":"7bdd54e0befe8ffc9f3b4e203220d9f1e881b6ee","size":6452,"noattachment":false,"key":"/get-symbol-description/-/get-symbol-description-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-symbol-description/download/get-symbol-description-1.1.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/get-symbol-description_1.1.0_1734454272920_0.7528606293290587"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-17T16:51:13.098Z","publish_time":1734454273098,"_source_registry_name":"default","_cnpm_publish_time":1734454273098},"1.0.2":{"name":"get-symbol-description","version":"1.0.2","description":"Gets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.","main":"index.js","exports":{".":"./index.js","./getInferredName":"./getInferredName.js","./package.json":"./package.json"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint --ext=.js,.mjs .","postlint":"evalmd README.md","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/inspect-js/get-symbol-description.git"},"keywords":["symbol","ecmascript","javascript","description"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/inspect-js/get-symbol-description/issues"},"homepage":"https://github.com/inspect-js/get-symbol-description#readme","dependencies":{"call-bind":"^1.0.5","es-errors":"^1.3.0","get-intrinsic":"^1.2.4"},"devDependencies":{"@ljharb/eslint-config":"^21.1.0","aud":"^2.0.4","auto-changelog":"^2.4.0","es-value-fixtures":"^1.4.2","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","hasown":"^2.0.0","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.1","safe-publish-latest":"^2.0.0","tape":"^5.7.4"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"get-symbol-description@1.0.2","gitHead":"b060de4c0b555e13ecd8463070db337702c7bd74","_nodeVersion":"21.6.0","_npmVersion":"10.2.4","dist":{"shasum":"533744d5aa20aca4e079c8e5daf7fd44202821f5","size":5524,"noattachment":false,"key":"/get-symbol-description/-/get-symbol-description-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-symbol-description/download/get-symbol-description-1.0.2.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-symbol-description_1.0.2_1707344531871_0.9376239942853508"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-07T22:22:12.082Z","publish_time":1707344532082,"_source_registry_name":"default","_cnpm_publish_time":1707344532082},"1.0.1":{"name":"get-symbol-description","version":"1.0.1","description":"Gets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.","main":"index.js","exports":{".":"./index.js","./getInferredName":"./getInferredName.js","./package.json":"./package.json"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint --ext=.js,.mjs .","postlint":"evalmd README.md","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/inspect-js/get-symbol-description.git"},"keywords":["symbol","ecmascript","javascript","description"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/inspect-js/get-symbol-description/issues"},"homepage":"https://github.com/inspect-js/get-symbol-description#readme","dependencies":{"call-bind":"^1.0.5","es-errors":"^1.3.0"},"devDependencies":{"@ljharb/eslint-config":"^21.1.0","aud":"^2.0.4","auto-changelog":"^2.4.0","es-value-fixtures":"^1.4.2","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","hasown":"^2.0.0","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.1","safe-publish-latest":"^2.0.0","tape":"^5.7.4"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"get-symbol-description@1.0.1","gitHead":"d07da203072e439509e5ffe00f55c1fc556a38fd","_nodeVersion":"21.6.0","_npmVersion":"10.2.4","dist":{"shasum":"c0de911bfaa9ea8da52b5e702d2b3b51b8791ec4","size":5468,"noattachment":false,"key":"/get-symbol-description/-/get-symbol-description-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-symbol-description/download/get-symbol-description-1.0.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-symbol-description_1.0.1_1707185231612_0.16619720370150604"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-06T02:07:11.770Z","publish_time":1707185231770,"_source_registry_name":"default","_cnpm_publish_time":1707185231770},"1.0.0":{"name":"get-symbol-description","version":"1.0.0","description":"Gets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.","main":"index.js","exports":{".":"./index.js","./getInferredName":"./getInferredName.js","./package.json":"./package.json"},"scripts":{"prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint --ext=.js,.mjs .","postlint":"evalmd README.md","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/inspect-js/get-symbol-description.git"},"keywords":["symbol","ecmascript","javascript","description"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/inspect-js/get-symbol-description/issues"},"homepage":"https://github.com/inspect-js/get-symbol-description#readme","dependencies":{"call-bind":"^1.0.2","get-intrinsic":"^1.1.1"},"devDependencies":{"@ljharb/eslint-config":"^17.6.0","aud":"^1.1.5","auto-changelog":"^2.3.0","es-value-fixtures":"^1.2.1","eslint":"^7.32.0","evalmd":"^0.0.19","foreach":"^2.0.5","has":"^1.0.3","nyc":"^10.3.2","object-inspect":"^1.11.0","safe-publish-latest":"^1.1.4","tape":"^5.3.1"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"6579bf3c250bc1cf12fec4900956ac7f08f34a41","_id":"get-symbol-description@1.0.0","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"shasum":"7fdb81c900101fbd564dd5f1a30af5aadc1e58d6","size":4324,"noattachment":false,"key":"/get-symbol-description/-/get-symbol-description-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-symbol-description/download/get-symbol-description-1.0.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-symbol-description_1.0.0_1629238925076_0.7988771138871933"},"_hasShrinkwrap":false,"publish_time":1629238925245,"_cnpm_publish_time":1629238925245}},"readme":"# get-symbol-description <sup>[![Version Badge][2]][1]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][5]][6]\n[![dev dependency status][7]][8]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][11]][1]\n\nGets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.\n\n## Example\n\n```js\nvar getSymbolDescription = require('get-symbol-description');\nvar assert = require('assert');\n\nassert(getSymbolDescription(Symbol()) === undefined);\nassert(getSymbolDescription(Symbol('')) === ''); // or `undefined`, if in an engine that lacks name inference from concise method\nassert(getSymbolDescription(Symbol('foo')) === 'foo');\nassert(getSymbolDescription(Symbol.iterator) === 'Symbol.iterator');\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[1]: https://npmjs.org/package/get-symbol-description\n[2]: https://versionbadg.es/inspect-js/get-symbol-description.svg\n[5]: https://david-dm.org/inspect-js/get-symbol-description.svg\n[6]: https://david-dm.org/inspect-js/get-symbol-description\n[7]: https://david-dm.org/inspect-js/get-symbol-description/dev-status.svg\n[8]: https://david-dm.org/inspect-js/get-symbol-description#info=devDependencies\n[11]: https://nodei.co/npm/get-symbol-description.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/get-symbol-description.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/get-symbol-description.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=get-symbol-description\n[codecov-image]: https://codecov.io/gh/inspect-js/get-symbol-description/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/get-symbol-description/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/get-symbol-description\n[actions-url]: https://github.com/inspect-js/get-symbol-description/actions\n","_attachments":{},"homepage":"https://github.com/inspect-js/get-symbol-description#readme","bugs":{"url":"https://github.com/inspect-js/get-symbol-description/issues"},"license":"MIT"}