{"name":"symbol.prototype.description","version":"2.0.0","description":"Spec-compliant shim for Symbol.prototype.description proposal.","main":"index.js","exports":{".":"./index.js","./auto":"./auto.js","./polyfill":"./polyfill.js","./implementation":"./implementation.js","./shim":"./shim.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","prelint":"evalmd README.md && es-shim-api --skip-shim-returns-polyfill","lint":"eslint --ext=js,mjs .","postlint":"tsc && attw -P","tests-only":"nyc tape 'test/**/*.js'","pretest":"npm run lint","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+ssh://git@github.com/es-shims/Symbol.prototype.description.git"},"keywords":["polyfill","shim","es","shim","ecmascript","symbol","description"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Symbol.prototype.description/issues"},"homepage":"https://github.com/es-shims/Symbol.prototype.description#readme","dependencies":{"call-bind":"^1.0.8","es-errors":"^1.3.0","es-object-atoms":"^1.1.1","get-symbol-description":"^1.1.0","gopd":"^1.2.0","has-symbols":"^1.1.0","object.getownpropertydescriptors":"^2.1.9"},"devDependencies":{"@arethetypeswrong/cli":"^0.18.2","@es-shims/api":"^3.0.3","@ljharb/eslint-config":"^22.1.2","@ljharb/tsconfig":"^0.3.2","@types/call-bind":"^1.0.5","@types/object-inspect":"^1.13.0","@types/object.getownpropertydescriptors":"^2.1.4","@types/reflect.ownkeys":"^1.1.1","@types/tape":"^5.8.1","auto-changelog":"^2.5.0","encoding":"^0.1.13","eslint":"^9.39.1","evalmd":"^0.0.19","has-strict-mode":"^1.1.0","hasown":"^2.0.2","in-publish":"^2.0.1","npmignore":"^0.3.2","nyc":"^10.3.2","object-inspect":"^1.13.4","own-keys":"^1.0.1","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"next"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows",".nycrc","eslint.config.mjs","test"]},"gitHead":"d711ff50a2db5b92282245e418e7ba735c85dc31","types":"./index.d.ts","_id":"symbol.prototype.description@2.0.0","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-+0y9FDvs92NEMhS10WWfkpBZEMkCwXSUi0JxjNucXQlgpPyWIfJYP++gIxXoD7PhLRqiuAr9xMxesxSu8qlqWg==","shasum":"5b7252fcfe6c7601637316070fc92e998d8f66f0","tarball":"http://registry-npm.ywwl.com/symbol.prototype.description/download/symbol.prototype.description-2.0.0.tgz","fileCount":16,"unpackedSize":29484,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB4ox9oemQ+ztXxDWifboPY/i77Pj7DIlGBaxNKj45jVAiEAj5ILpzYSVxRbaWev+BjTV4paDWmJXab3y6XtdfPnihk="}],"size":9477,"noattachment":false,"key":"/symbol.prototype.description/-/symbol.prototype.description-2.0.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/symbol.prototype.description_2.0.0_1765491854748_0.7294082655820455"},"_hasShrinkwrap":false,"readme":"# Symbol.prototype.description <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nAn ECMAScript spec-compliant `Symbol.prototype.description` shim. Invoke its \"shim\" method to shim Symbol.prototype.description if it is unavailable.\n*Note*: `Symbol#description` requires a true ES6 environment, specifically one with native Symbols (eg, node >= v11.15.0)\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES6-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-symbol.prototype.description).\n\nMost common usage:\n```js\nvar description = require('symbol.prototype.description');\nvar shimDescription = require('symbol.prototype.description/shim');\nvar assert = require('assert');\n\nassert(description(Symbol('foo')) === 'foo');\nassert(description(Symbol()) === undefined);\nassert(description(Symbol(undefined)) === undefined);\nassert(description(Symbol(null)) === 'null');\n\nif (!('description' in Symbol.prototype)) {\n\t// note: this should be the empty string, but in many engines,\n\t// it is impossible to distinguish Symbol() and Symbol('')\n\t// without globally replacing `Symbol`\n\tassert(description(Symbol('')) === undefined);\n\n\tshimDescription();\n}\n\nassert(description(Symbol('foo')) === Symbol('foo').description);\nassert(description(Symbol()) === Symbol().description);\nassert(description(Symbol(undefined)) === Symbol(undefined).description);\nassert(description(Symbol(null)) === Symbol(null).description);\n\nassert(Symbol('').description === ''); // this works fine!\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/symbol.prototype.description\n[npm-version-svg]: https://versionbadg.es/es-shims/Symbol.prototype.description.svg\n[deps-svg]: https://david-dm.org/es-shims/Symbol.prototype.description.svg\n[deps-url]: https://david-dm.org/es-shims/Symbol.prototype.description\n[dev-deps-svg]: https://david-dm.org/es-shims/Symbol.prototype.description/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/Symbol.prototype.description#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/symbol.prototype.description.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/symbol.prototype.description.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/symbol.prototype.description.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=symbol.prototype.description\n[codecov-image]: https://codecov.io/gh/es-shims/Symbol.prototype.description/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/Symbol.prototype.description/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Symbol.prototype.description\n[actions-url]: https://github.com/es-shims/Symbol.prototype.description/actions\n","publish_time":1765491854883,"_cnpm_publish_time":1765491854883,"dist-tags":{"latest":"2.0.0"}}