{"id":18277619,"url":"https://github.com/inspect-js/get-symbol-description","last_synced_at":"2025-04-05T04:30:39.422Z","repository":{"id":57157006,"uuid":"397400854","full_name":"inspect-js/get-symbol-description","owner":"inspect-js","description":"Gets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.","archived":false,"fork":false,"pushed_at":"2024-12-17T16:51:09.000Z","size":69,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-31T16:08:19.071Z","etag":null,"topics":["description","ecmascript","javascript","symbol"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inspect-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ljharb"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":"npm/deep-equal","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-08-17T21:58:13.000Z","updated_at":"2024-12-17T16:51:13.000Z","dependencies_parsed_at":"2023-02-06T08:55:12.822Z","dependency_job_id":"4d294884-b2d8-4522-b8c5-b7ea9ba9fd2c","html_url":"https://github.com/inspect-js/get-symbol-description","commit_stats":{"total_commits":31,"total_committers":1,"mean_commits":31.0,"dds":0.0,"last_synced_commit":"396ee2763238415c51eec62fbc41bf274c6552b2"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fget-symbol-description","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fget-symbol-description/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fget-symbol-description/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fget-symbol-description/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inspect-js","download_url":"https://codeload.github.com/inspect-js/get-symbol-description/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289382,"owners_count":20914463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["description","ecmascript","javascript","symbol"],"created_at":"2024-11-05T12:19:47.519Z","updated_at":"2025-04-05T04:30:37.213Z","avatar_url":"https://github.com/inspect-js.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ljharb","https://tidelift.com/funding/github/npm/deep-equal"],"categories":[],"sub_categories":[],"readme":"# get-symbol-description \u003csup\u003e[![Version Badge][2]][1]\u003c/sup\u003e\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\u0026stars=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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fget-symbol-description","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finspect-js%2Fget-symbol-description","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fget-symbol-description/lists"}