{"_id":"symbol.prototype.description","_rev":"556175","name":"symbol.prototype.description","description":"Spec-compliant shim for Symbol.prototype.description proposal.","dist-tags":{"latest":"1.0.5"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2021-08-17T22:45:47.000Z","created":"2018-01-23T23:48:37.753Z","1.0.5":"2021-08-17T22:45:05.155Z","1.0.4":"2021-02-21T14:50:47.992Z","1.0.3":"2020-11-23T08:06:21.528Z","1.0.2":"2019-12-14T00:44:18.487Z","1.0.1":"2019-10-19T05:42:49.887Z","1.0.0":"2018-01-23T23:48:37.753Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/es-shims/Symbol.prototype.description.git"},"versions":{"1.0.5":{"name":"symbol.prototype.description","version":"1.0.5","description":"Spec-compliant shim for Symbol.prototype.description proposal.","main":"index.js","sideEffects":false,"scripts":{"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)\")\"","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint .","postlint":"es-shim-api --bound --skip-shim-returns-polyfill","tests-only":"nyc tape 'test/**/*.js'","pretest":"npm run lint","test":"npm run tests-only","posttest":"npx aud --production"},"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.2","get-symbol-description":"^1.0.0","has-symbols":"^1.0.2","object.getownpropertydescriptors":"^2.1.2"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^17.6.0","aud":"^1.1.5","auto-changelog":"^2.3.0","eslint":"^7.32.0","has-strict-mode":"^1.0.1","nyc":"^10.3.2","reflect.ownkeys":"^1.0.2","safe-publish-latest":"^1.1.4","tape":"^5.3.1"},"engines":{"node":">= 0.11.15"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"a0e65e6addb7fc1b84d560541cccec3bd5a6a8c5","_id":"symbol.prototype.description@1.0.5","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"shasum":"d30e01263b6020fbbd2d2884a6276ce4d49ab568","size":8431,"noattachment":false,"key":"/symbol.prototype.description/-/symbol.prototype.description-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/symbol.prototype.description/download/symbol.prototype.description-1.0.5.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/symbol.prototype.description_1.0.5_1629240304995_0.6462127571041418"},"_hasShrinkwrap":false,"publish_time":1629240305155,"_cnpm_publish_time":1629240305155},"1.0.4":{"name":"symbol.prototype.description","version":"1.0.4","description":"Spec-compliant shim for Symbol.prototype.description proposal.","main":"index.js","scripts":{"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)\")\"","prepublish":"safe-publish-latest","lint":"eslint .","postlint":"es-shim-api --bound --skip-shim-returns-polyfill","tests-only":"nyc tape 'test/**/*.js'","pretest":"npm run lint","test":"npm run tests-only","posttest":"npx aud --production"},"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.2","es-abstract":"^1.18.0-next.2","has-symbols":"^1.0.1","object.getownpropertydescriptors":"^2.1.2"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^17.5.1","aud":"^1.1.4","auto-changelog":"^2.2.1","eslint":"^7.20.0","has-strict-mode":"^1.0.1","nyc":"^10.3.2","reflect.ownkeys":"^1.0.2","safe-publish-latest":"^1.1.4","tape":"^5.2.0"},"engines":{"node":">= 0.11.15"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"aea73696a8350aa049f99fcded866b64f7624f95","_id":"symbol.prototype.description@1.0.4","_nodeVersion":"14.15.5","_npmVersion":"6.14.11","dist":{"shasum":"c30edd3fe8c040d941cf7dc15842be15adf66855","size":8096,"noattachment":false,"key":"/symbol.prototype.description/-/symbol.prototype.description-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/symbol.prototype.description/download/symbol.prototype.description-1.0.4.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/symbol.prototype.description_1.0.4_1613919047717_0.038559584046810924"},"_hasShrinkwrap":false,"publish_time":1613919047992,"_cnpm_publish_time":1613919047992},"1.0.3":{"name":"symbol.prototype.description","version":"1.0.3","description":"Spec-compliant shim for Symbol.prototype.description proposal.","main":"index.js","scripts":{"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)\")\"","prepublish":"safe-publish-latest","lint":"eslint .","postlint":"es-shim-api --bound --skip-shim-returns-polyfill","tests-only":"nyc tape 'test/**/*.js'","pretest":"npm run lint","test":"npm run tests-only","posttest":"npx aud --production"},"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.0","es-abstract":"^1.18.0-next.1","has-symbols":"^1.0.1","object.getownpropertydescriptors":"^2.1.0"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^17.2.0","aud":"^1.1.3","auto-changelog":"^2.2.1","eslint":"^7.14.0","has-strict-mode":"^1.0.0","nyc":"^10.3.2","reflect.ownkeys":"^1.0.1","safe-publish-latest":"^1.1.4","tape":"^5.0.1"},"engines":{"node":">= 0.11.15"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"df33548c3f376574e64110dc5c0669b430582a5d","_id":"symbol.prototype.description@1.0.3","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"5b0eb61595bca6945da95ec7696a25e55aa1eca6","size":8761,"noattachment":false,"key":"/symbol.prototype.description/-/symbol.prototype.description-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/symbol.prototype.description/download/symbol.prototype.description-1.0.3.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/symbol.prototype.description_1.0.3_1606118781305_0.2729478645609724"},"_hasShrinkwrap":false,"publish_time":1606118781528,"_cnpm_publish_time":1606118781528},"1.0.2":{"name":"symbol.prototype.description","version":"1.0.2","description":"Spec-compliant shim for Symbol.prototype.description proposal.","main":"index.js","scripts":{"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)\")\"","prepublish":"safe-publish-latest","lint":"eslint .","postlint":"es-shim-api --bound --skip-shim-returns-polyfill","tests-only":"node test && node test/shimmed","pretest":"npm run lint","test":"npm run tests-only","posttest":"npx aud"},"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":{"es-abstract":"^1.17.0-next.1","has-symbols":"^1.0.1"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^15.0.2","auto-changelog":"^1.16.2","eslint":"^6.7.2","safe-publish-latest":"^1.1.4","tape":"^4.11.0"},"engines":{"node":">= 0.12"},"auto-changelog":{"output":"CHANGELOG.md","unreleased":false,"commitLimit":false,"backfillLimit":false},"gitHead":"014e4b9ca75556a3fe86d67a82fd4213bcddb9cd","_id":"symbol.prototype.description@1.0.2","_nodeVersion":"13.3.0","_npmVersion":"6.13.1","dist":{"shasum":"f325e1e6ad534b3b29c9c3ca73c136c9ce03c5e2","size":6450,"noattachment":false,"key":"/symbol.prototype.description/-/symbol.prototype.description-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/symbol.prototype.description/download/symbol.prototype.description-1.0.2.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/symbol.prototype.description_1.0.2_1576284258366_0.08399736490304588"},"_hasShrinkwrap":false,"publish_time":1576284258487,"_cnpm_publish_time":1576284258487},"1.0.1":{"name":"symbol.prototype.description","version":"1.0.1","description":"Spec-compliant shim for Symbol.prototype.description proposal.","main":"index.js","scripts":{"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)\")\"","prepublish":"safe-publish-latest","lint":"eslint .","postlint":"es-shim-api --bound --skip-shim-returns-polyfill","tests-only":"node test && node test/shimmed","pretest":"npm run lint","test":"npm run tests-only","posttest":"npx aud"},"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"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Symbol.prototype.description/issues"},"homepage":"https://github.com/es-shims/Symbol.prototype.description#readme","dependencies":{"es-abstract":"^1.16.0","has-symbols":"^1.0.0"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^14.1.0","auto-changelog":"^1.16.1","eslint":"^6.5.1","safe-publish-latest":"^1.1.3","tape":"^4.11.0"},"engines":{"node":">= 0.12"},"auto-changelog":{"output":"CHANGELOG.md","unreleased":false,"commitLimit":false,"backfillLimit":false},"gitHead":"44ef90edd2073d6c6fcbb4a745104a92412dbef0","_id":"symbol.prototype.description@1.0.1","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"shasum":"e44e5db04d977932d1a261570bf65312773406d0","size":6940,"noattachment":false,"key":"/symbol.prototype.description/-/symbol.prototype.description-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/symbol.prototype.description/download/symbol.prototype.description-1.0.1.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/symbol.prototype.description_1.0.1_1571463769712_0.7114072386815513"},"_hasShrinkwrap":false,"publish_time":1571463769887,"_cnpm_publish_time":1571463769887},"1.0.0":{"name":"symbol.prototype.description","version":"1.0.0","description":"Spec-compliant shim for Symbol.prototype.description proposal.","main":"index.js","scripts":{"lint":"eslint .","postlint":"es-shim-api --bound --skip-shim-returns-polyfill","security":"nsp check","tests-only":"node test && node test/shimmed","pretest":"npm run lint","test":"npm run tests-only","posttest":"npm run security"},"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"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Symbol.prototype.description/issues"},"homepage":"https://github.com/es-shims/Symbol.prototype.description#readme","dependencies":{"has-symbols":"^1.0.0"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^12.2.1","eslint":"^4.16.0","nsp":"^3.1.0","tape":"^4.8.0"},"engines":{"node":">= 0.12"},"gitHead":"71f0b86f87ca9be9d17e746167e8a00b6f67cb9c","_id":"symbol.prototype.description@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"6e355660eb1e44ca8ad53a68fdb72ef131ca4b12","size":6614,"noattachment":false,"key":"/symbol.prototype.description/-/symbol.prototype.description-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/symbol.prototype.description/download/symbol.prototype.description-1.0.0.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/symbol.prototype.description-1.0.0.tgz_1516751316833_0.06466031167656183"},"directories":{},"publish_time":1516751317753,"_hasShrinkwrap":false,"_cnpm_publish_time":1516751317753}},"readme":"# Symbol.prototype.description <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-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.\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://github.com/michaelficarra/Symbol-description-proposal/).\n\nMost common usage:\n```js\nvar description = require('symbol.prototype.description');\n\nassert(description(Symbol('foo')) === 'foo');\nassert(description(Symbol()) === undefined);\nassert(description(Symbol(undefined)) === undefined);\nassert(description(Symbol(null)) === 'null');\n\n// note: this should be the empty string, but in many engines,\n// it is impossible to distinguish Symbol() and Symbol('')\n// without globally replacing `Symbol`\nassert(description(Symbol('')) === undefined);\n\nif (!Symbol.prototype.description) {\n\tdescription.shim();\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","_attachments":{},"homepage":"https://github.com/es-shims/Symbol.prototype.description#readme","bugs":{"url":"https://github.com/es-shims/Symbol.prototype.description/issues"},"license":"MIT"}