{"name":"is-weakref","version":"1.1.0","description":"Is this value a JS WeakRef? This module works cross-realm/iframe, and despite ES6 @@toStringTag.","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"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","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"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/is-weakref.git"},"keywords":["weakref","weak","ref","finalization","finalization registry"],"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-weakref/issues"},"homepage":"https://github.com/inspect-js/is-weakref#readme","devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.2","@types/for-each":"^0.3.3","@types/object-inspect":"^1.13.0","@types/tape":"^5.6.5","auto-changelog":"^2.5.0","encoding":"^0.1.13","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"},"dependencies":{"call-bound":"^1.0.2"},"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-weakref@1.1.0","gitHead":"8f3dd81e2382f7fdcd91f36b4a03bba18b6286aa","types":"./index.d.ts","_nodeVersion":"23.4.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-SXM8Nwyys6nT5WP6pltOwKytLV7FqQ4UiibxVmW+EIosHcmCqkkjViTb5SNssDlkCiEYRP1/pdWUKVvZBmsR2Q==","shasum":"47e3472ae95a63fa9cf25660bcf0c181c39770ef","tarball":"http://registry-npm.ywwl.com/is-weakref/download/is-weakref-1.1.0.tgz","fileCount":11,"unpackedSize":15157,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjDcbNyWWRIf2ZqTPo1PWnebwyn0rXRaFmbmHgwLnouwIgUFB6puCirZgNg8TJwpST1jTcmN1t/5zLKp+mMYcZ63k="}],"size":6043,"noattachment":false,"key":"/is-weakref/-/is-weakref-1.1.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-weakref_1.1.0_1734105706050_0.03721194316043852"},"_hasShrinkwrap":false,"readme":"# is-weakref <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\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][11]][1]\n\nIs this value a JS WeakRef? This module works cross-realm/iframe, and despite ES6 @@toStringTag.\n\n## Example\n\n```js\nvar isWeakRef = require('is-weakref');\nassert(!isWeakRef(function () {}));\nassert(!isWeakRef(null));\nassert(!isWeakRef(function* () { yield 42; return Infinity; });\nassert(!isWeakRef(Symbol('foo')));\nassert(!isWeakRef(1n));\nassert(!isWeakRef(Object(1n)));\n\nassert(!isWeakRef(new Set()));\nassert(!isWeakRef(new WeakSet()));\nassert(!isWeakRef(new Map()));\nassert(!isWeakRef(new WeakMap()));\n\nassert(isWeakRef(new WeakRef({})));\n\nclass MyWeakRef extends WeakRef {}\nassert(isWeakRef(new MyWeakRef({})));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/is-weakref\n[npm-version-svg]: https://versionbadg.es/inspect-js/is-weakref.svg\n[deps-svg]: https://david-dm.org/inspect-js/is-weakref.svg\n[deps-url]: https://david-dm.org/inspect-js/is-weakref\n[dev-deps-svg]: https://david-dm.org/inspect-js/is-weakref/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/is-weakref#info=devDependencies\n[license-image]: https://img.shields.io/npm/l/is-weakref.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-weakref.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-weakref\n[codecov-image]: https://codecov.io/gh/inspect-js/is-weakref/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/is-weakref/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-weakref\n[actions-url]: https://github.com/inspect-js/is-weakref/actions\n","publish_time":1734105706314,"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_cnpm_publish_time":1734105706314,"dist-tags":{"latest":"1.1.1"}}