{"_id":"is-weakmap","_rev":"3343499","name":"is-weakmap","description":"Is this value a JS WeakMap? This module works cross-realm/iframe, and despite ES6 @@toStringTag.","dist-tags":{"latest":"2.0.2"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2024-07-10T08:46:00.000Z","created":"2015-02-18T12:32:27.653Z","2.0.2":"2024-03-08T20:18:32.058Z","2.0.1":"2019-12-18T04:46:33.984Z","2.0.0":"2019-11-12T20:23:36.681Z","1.0.1":"2015-08-31T20:09:06.050Z","1.0.0":"2015-02-18T12:32:27.653Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/is-weakmap.git"},"versions":{"2.0.2":{"name":"is-weakmap","version":"2.0.2","description":"Is this value a JS WeakMap? This module works cross-realm/iframe, and despite ES6 @@toStringTag.","main":"index.js","sideEffects":true,"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=es5-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":"aud --production"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/is-weakmap.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-weakmap/issues"},"homepage":"https://github.com/inspect-js/is-weakmap#readme","devDependencies":{"@arethetypeswrong/cli":"^0.15.0","@ljharb/eslint-config":"^21.1.0","@types/for-each":"^0.3.3","@types/object-inspect":"^1.8.4","@types/tape":"^5.6.4","aud":"^2.0.4","auto-changelog":"^2.4.0","core-js":"^2.6.12","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.1","safe-publish-latest":"^2.0.0","tape":"^5.7.5","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-weakmap@2.0.2","gitHead":"7ccef90eb7e20417c70a0fb80ac6fa9dbf7c0dd1","types":"./index.d.ts","_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"shasum":"bf72615d649dfe5f699079c54b83e47d1ae19cfd","size":7794,"noattachment":false,"key":"/is-weakmap/-/is-weakmap-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-weakmap/download/is-weakmap-2.0.2.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-weakmap_2.0.2_1709929111880_0.933051433597637"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-08T20:18:32.058Z","publish_time":1709929112058,"_source_registry_name":"default","_cnpm_publish_time":1709929112058},"2.0.1":{"name":"is-weakmap","version":"2.0.1","description":"Is this value a JS WeakMap? This module works cross-realm/iframe, and despite ES6 @@toStringTag.","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","pretest":"npm run lint","lint":"eslint .","tests-only":"node test","posttests-only":"node -e \"require('es5-shim'); require('es6-shim'); require('./test');\"","test":"npm run tests-only","posttest":"npx aud"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/is-weakmap.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-weakmap/issues"},"homepage":"https://github.com/inspect-js/is-weakmap#readme","devDependencies":{"@ljharb/eslint-config":"^15.0.2","auto-changelog":"^1.16.2","es5-shim":"^4.5.13","es6-shim":"^0.35.5","eslint":"^6.7.2","for-each":"^0.3.3","object-inspect":"^1.7.0","safe-publish-latest":"^1.1.4","tape":"^4.12.0"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false},"gitHead":"2ea2585475935605fb66a77304ad0083870a6b8c","_id":"is-weakmap@2.0.1","_nodeVersion":"13.3.0","_npmVersion":"6.13.1","dist":{"shasum":"5008b59bdc43b698201d18f62b37b2ca243e8cf2","size":4402,"noattachment":false,"key":"/is-weakmap/-/is-weakmap-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-weakmap/download/is-weakmap-2.0.1.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-weakmap_2.0.1_1576644393747_0.5346311529639225"},"_hasShrinkwrap":false,"publish_time":1576644393984,"_cnpm_publish_time":1576644393984},"2.0.0":{"name":"is-weakmap","version":"2.0.0","description":"Is this value a JS WeakMap? This module works cross-realm/iframe, and despite ES6 @@toStringTag.","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","pretest":"npm run lint","lint":"eslint .","tests-only":"node test","posttests-only":"node -e \"require('es5-shim'); require('es6-shim'); require('./test');\"","test":"npm run tests-only","posttest":"npx aud"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/is-weakmap.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-weakmap/issues"},"homepage":"https://github.com/inspect-js/is-weakmap#readme","devDependencies":{"@ljharb/eslint-config":"^15.0.1","auto-changelog":"^1.16.2","es5-shim":"^4.5.13","es6-shim":"^0.35.5","eslint":"^6.6.0","for-each":"^0.3.3","object-inspect":"^1.7.0","safe-publish-latest":"^1.1.4","tape":"^4.11.0"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false},"gitHead":"031ced9808ead4947a7d81ae13efa6511d3f2487","_id":"is-weakmap@2.0.0","_nodeVersion":"13.1.0","_npmVersion":"6.12.1","dist":{"shasum":"88bd0b8ec3a5724477637d58ed96cb00552593fd","size":3939,"noattachment":false,"key":"/is-weakmap/-/is-weakmap-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-weakmap/download/is-weakmap-2.0.0.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-weakmap_2.0.0_1573590216572_0.7775777273311031"},"_hasShrinkwrap":false,"publish_time":1573590216681,"_cnpm_publish_time":1573590216681},"1.0.1":{"name":"is-weakmap","version":"1.0.1","description":"Easily check if a givin object is an ES6 WeakMap","keywords":["weakmap","es6","esnext","harmony","typeof","type","object"],"license":"MIT","author":{"name":"Arthur Verschaeve","email":"contact@arthurverschaeve.be"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/arthurvr/is-weakmap.git"},"scripts":{"test":"xo && node test.js"},"devDependencies":{"ava":"0.0.4","xo":"*"},"engines":{"node":">=0.12.0"},"xo":{"envs":["node"]},"gitHead":"398b5ca28d33c3e712ccfe0492ed66d9ec104d89","bugs":{"url":"https://github.com/arthurvr/is-weakmap/issues"},"homepage":"https://github.com/arthurvr/is-weakmap#readme","_id":"is-weakmap@1.0.1","_shasum":"ba2b14ee17c918a3bcd69869b66409816f1190e1","_from":".","_npmVersion":"2.13.0","_nodeVersion":"2.4.0","_npmUser":{"name":"arthurvr","email":"contact@arthurverschaeve.be"},"dist":{"shasum":"ba2b14ee17c918a3bcd69869b66409816f1190e1","size":1550,"noattachment":false,"key":"/is-weakmap/-/is-weakmap-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-weakmap/download/is-weakmap-1.0.1.tgz"},"maintainers":[{"name":"ljharb","email":""}],"directories":{},"publish_time":1441051746050,"_cnpm_publish_time":1441051746050,"_hasShrinkwrap":false},"1.0.0":{"name":"is-weakmap","version":"1.0.0","description":"Easily check if a givin object is an ES6 WeakMap","keywords":["weakmap","es6","esnext","harmony","typeof","type","object"],"license":"MIT","author":{"name":"Arthur Verschaeve","email":"contact@arthurverschaeve.be"},"files":["index.js"],"repository":{"type":"git","url":"https://github.com/arthurvr/is-weakmap"},"scripts":{"test":"node test/test.js"},"devDependencies":{"ava":"^0.0.4"},"engines":{"node":">=0.12.0"},"gitHead":"9ca06fb61ad97b1253e6f1f0defbe10ddfbbd861","bugs":{"url":"https://github.com/arthurvr/is-weakmap/issues"},"homepage":"https://github.com/arthurvr/is-weakmap","_id":"is-weakmap@1.0.0","_shasum":"831dc5858bb405318e78278a2f9f4a56e77cdc82","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"arthurvr","email":"contact@arthurverschaeve.be"},"maintainers":[{"name":"ljharb","email":""}],"dist":{"shasum":"831dc5858bb405318e78278a2f9f4a56e77cdc82","size":1469,"noattachment":false,"key":"/is-weakmap/-/is-weakmap-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-weakmap/download/is-weakmap-1.0.0.tgz"},"directories":{},"publish_time":1424262747653,"_cnpm_publish_time":1424262747653,"_hasShrinkwrap":false}},"readme":"# is-weakmap <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 WeakMap? This module works cross-realm/iframe, and despite ES6 @@toStringTag.\n\n## Example\n\n```js\nvar isWeakMap = require('is-weakmap');\nassert(!isWeakMap(function () {}));\nassert(!isWeakMap(null));\nassert(!isWeakMap(function* () { yield 42; return Infinity; });\nassert(!isWeakMap(Symbol('foo')));\nassert(!isWeakMap(1n));\nassert(!isWeakMap(Object(1n)));\n\nassert(!isWeakMap(new Set()));\nassert(!isWeakMap(new WeakSet()));\nassert(!isWeakMap(new Map()));\n\nassert(isWeakMap(new WeakMap()));\n\nclass MyWeakMap extends WeakMap {}\nassert(isWeakMap(new MyWeakMap()));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/is-weakmap\n[npm-version-svg]: https://versionbadg.es/inspect-js/is-weakmap.svg\n[deps-svg]: https://david-dm.org/inspect-js/is-weakmap.svg\n[deps-url]: https://david-dm.org/inspect-js/is-weakmap\n[dev-deps-svg]: https://david-dm.org/inspect-js/is-weakmap/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/is-weakmap#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/is-weakmap.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/is-weakmap.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-weakmap.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-weakmap\n[codecov-image]: https://codecov.io/gh/inspect-js/is-weakmap/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/is-weakmap/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-weakmap\n[actions-url]: https://github.com/inspect-js/is-weakmap/actions\n","_attachments":{},"homepage":"https://github.com/inspect-js/is-weakmap#readme","bugs":{"url":"https://github.com/inspect-js/is-weakmap/issues"},"license":"MIT"}