{"name":"is-weakset","version":"2.0.4","description":"Is this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.","main":"index.js","sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","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)\")\"","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run lint","lint":"eslint --ext=js,mjs .","postlint":"tsc -p . && attw -P","tests-only":"nyc tape 'test/**/*.js'","tests:shims":"nyc tape --require=es5-shim --require=es6-shim 'test/**/*.js'","tests:corejs":"nyc tape --require=core-js 'test/**/*.js'","test":"npm run tests-only && npm run tests:shims && npm run tests:corejs","posttest":"npx npm@'>=10.2' audit --production"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/is-weakset.git"},"keywords":["map","weakmap","set","weakset","collection","is","robust"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/inspect-js/is-weakset/issues"},"homepage":"https://github.com/inspect-js/is-weakset#readme","dependencies":{"call-bound":"^1.0.3","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","core-js":"^2.6.12","encoding":"^0.1.13","es5-shim":"^4.6.7","es6-shim":"^0.35.8","eslint":"=8.8.0","for-each":"^0.3.3","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":"next"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"engines":{"node":">= 0.4"},"_id":"is-weakset@2.0.4","gitHead":"3cf98e3fd0236a8457861db81cc7c5b8d1f4106d","types":"./index.d.ts","_nodeVersion":"23.4.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==","shasum":"c9f5deb0bc1906c6d6f1027f284ddf459249daca","tarball":"http://registry-npm.ywwl.com/is-weakset/download/is-weakset-2.0.4.tgz","fileCount":13,"unpackedSize":19794,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChEZSRi//6pzgqpcfQ1n1vt6BRrBr8E93gL/GW4u6BXwIhALpjgM+zdkRWZR1yvazgCLutmuYq58i3a2lJCD8WoF0Z"}],"size":7471,"noattachment":false,"key":"/is-weakset/-/is-weakset-2.0.4.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/is-weakset_2.0.4_1734413863196_0.2574897336775783"},"_hasShrinkwrap":false,"readme":"# is-weakset <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\nIs this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.\n\n## Example\n\n```js\nvar isWeakSet = require('is-weakset');\nassert(!isWeakSet(function () {}));\nassert(!isWeakSet(null));\nassert(!isWeakSet(function* () { yield 42; return Infinity; });\nassert(!isWeakSet(Symbol('foo')));\nassert(!isWeakSet(1n));\nassert(!isWeakSet(Object(1n)));\n\nassert(!isWeakSet(new Set()));\nassert(!isWeakSet(new WeakMap()));\nassert(!isWeakSet(new Map()));\n\nassert(isWeakSet(new WeakSet()));\n\nclass MyWeakSet extends WeakSet {}\nassert(isWeakSet(new MyWeakSet()));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/is-weakset\n[npm-version-svg]: https://versionbadg.es/inspect-js/is-weakset.svg\n[deps-svg]: https://david-dm.org/inspect-js/is-weakset.svg\n[deps-url]: https://david-dm.org/inspect-js/is-weakset\n[dev-deps-svg]: https://david-dm.org/inspect-js/is-weakset/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/is-weakset#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/is-weakset.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/is-weakset.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-weakset.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-weakset\n[codecov-image]: https://codecov.io/gh/inspect-js/is-weakset/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/is-weakset/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-weakset\n[actions-url]: https://github.com/inspect-js/is-weakset/actions\n","publish_time":1734413863401,"_cnpm_publish_time":1734413863401,"dist-tags":{"latest":"2.0.4"}}