{"_id":"is-map","_rev":"3343497","name":"is-map","description":"Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.","dist-tags":{"latest":"2.0.3"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2024-07-10T08:45:59.000Z","created":"2015-02-18T12:24:11.571Z","2.0.3":"2024-03-08T16:49:07.811Z","2.0.2":"2020-12-14T07:32:22.370Z","2.0.1":"2019-12-17T20:55:37.780Z","2.0.0":"2019-11-12T20:23:24.692Z","1.0.1":"2015-07-02T21:59:12.567Z","1.0.0":"2015-02-18T12:24:11.571Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/is-map.git"},"versions":{"2.0.3":{"name":"is-map","version":"2.0.3","description":"Is this value a JS Map? 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=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-map.git"},"keywords":["map","set","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-map/issues"},"homepage":"https://github.com/inspect-js/is-map#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":"^5.5.0-dev.20240308"},"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-map@2.0.3","gitHead":"f120adc23ed8b1bb6b605de6b7e371d7a41d1a0b","types":"./index.d.ts","_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"shasum":"ede96b7fe1e270b3c4465e3a465658764926d62e","size":7928,"noattachment":false,"key":"/is-map/-/is-map-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-map/download/is-map-2.0.3.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-map_2.0.3_1709916547672_0.21615129146931822"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-08T16:49:07.811Z","publish_time":1709916547811,"_source_registry_name":"default","_cnpm_publish_time":1709916547811},"2.0.2":{"name":"is-map","version":"2.0.2","description":"Is this value a JS Map? 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 --ext=js,mjs .","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-map.git"},"keywords":["map","set","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-map/issues"},"homepage":"https://github.com/inspect-js/is-map#readme","devDependencies":{"@ljharb/eslint-config":"^17.3.0","aud":"^1.1.3","auto-changelog":"^2.2.1","core-js":"^2.6.12","es5-shim":"^4.5.14","es6-shim":"^0.35.6","eslint":"^7.15.0","for-each":"^0.3.3","nyc":"^10.3.2","object-inspect":"^1.9.0","safe-publish-latest":"^1.1.4","tape":"^5.0.1"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"d76d9443208f4cee581d551c549d4f41bc214b95","_id":"is-map@2.0.2","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"shasum":"00922db8c9bf73e81b7a335827bc2a43f2b91127","size":5463,"noattachment":false,"key":"/is-map/-/is-map-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-map/download/is-map-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-map_2.0.2_1607931142208_0.5408367375826266"},"_hasShrinkwrap":false,"publish_time":1607931142370,"_cnpm_publish_time":1607931142370},"2.0.1":{"name":"is-map","version":"2.0.1","description":"Is this value a JS Map? 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-map.git"},"keywords":["map","set","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-map/issues"},"homepage":"https://github.com/inspect-js/is-map#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":"6935a0720bc1e63779c571ca3389483b329d46d3","_id":"is-map@2.0.1","_nodeVersion":"13.3.0","_npmVersion":"6.13.1","dist":{"shasum":"520dafc4307bb8ebc33b813de5ce7c9400d644a1","size":4419,"noattachment":false,"key":"/is-map/-/is-map-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-map/download/is-map-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-map_2.0.1_1576616137689_0.32348509441535067"},"_hasShrinkwrap":false,"publish_time":1576616137780,"_cnpm_publish_time":1576616137780},"2.0.0":{"name":"is-map","version":"2.0.0","description":"Is this value a JS Map? 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-map.git"},"keywords":["map","set","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-map/issues"},"homepage":"https://github.com/inspect-js/is-map#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":"424e38e9b9ab975561042b78e3b0019031142ab0","_id":"is-map@2.0.0","_nodeVersion":"13.1.0","_npmVersion":"6.12.1","dist":{"shasum":"1d223ada48a1f5fdb7b3c5c21a45b6a4d48aec3c","size":3929,"noattachment":false,"key":"/is-map/-/is-map-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-map/download/is-map-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-map_2.0.0_1573590204580_0.024253520599434975"},"_hasShrinkwrap":false,"publish_time":1573590204692,"_cnpm_publish_time":1573590204692},"1.0.1":{"name":"is-map","version":"1.0.1","description":"Easily check if a givin object is an ES6 Map","keywords":["map","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-map.git"},"scripts":{"test":"node test.js"},"devDependencies":{"ava":"^0.0.4"},"engines":{"node":">=0.12.0"},"gitHead":"8cb38f4fbf7c642ad400b26958a9e60fb79fd8b2","bugs":{"url":"https://github.com/arthurvr/is-map/issues"},"homepage":"https://github.com/arthurvr/is-map#readme","_id":"is-map@1.0.1","_shasum":"74cd3a0bdceae00ae4a316c2aaee6b624a2575a5","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.1","_npmUser":{"name":"arthurvr","email":"contact@arthurverschaeve.be"},"dist":{"shasum":"74cd3a0bdceae00ae4a316c2aaee6b624a2575a5","size":1497,"noattachment":false,"key":"/is-map/-/is-map-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-map/download/is-map-1.0.1.tgz"},"maintainers":[{"name":"ljharb","email":""}],"directories":{},"publish_time":1435874352567,"_cnpm_publish_time":1435874352567,"_hasShrinkwrap":false},"1.0.0":{"name":"is-map","version":"1.0.0","description":"Easily check if a givin object is an ES6 Map","keywords":["map","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-map"},"scripts":{"test":"node test/test.js"},"devDependencies":{"ava":"^0.0.4"},"engines":{"node":">=0.12.0"},"gitHead":"1cbaac2decc0ffbc919a78c6e6a915ec0ee08fe9","bugs":{"url":"https://github.com/arthurvr/is-map/issues"},"homepage":"https://github.com/arthurvr/is-map","_id":"is-map@1.0.0","_shasum":"0b3f1df015e72dd7279b18b2f1d5597fd7328bd8","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"arthurvr","email":"contact@arthurverschaeve.be"},"maintainers":[{"name":"ljharb","email":""}],"dist":{"shasum":"0b3f1df015e72dd7279b18b2f1d5597fd7328bd8","size":1458,"noattachment":false,"key":"/is-map/-/is-map-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-map/download/is-map-1.0.0.tgz"},"directories":{},"publish_time":1424262251571,"_cnpm_publish_time":1424262251571,"_hasShrinkwrap":false}},"readme":"# is-map <sup>[![Version Badge][2]][1]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][5]][6]\n[![dev dependency status][7]][8]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][11]][1]\n\nIs this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.\n\n## Example\n\n```js\nvar isMap = require('is-map');\nassert(!isMap(function () {}));\nassert(!isMap(null));\nassert(!isMap(function* () { yield 42; return Infinity; });\nassert(!isMap(Symbol('foo')));\nassert(!isMap(1n));\nassert(!isMap(Object(1n)));\n\nassert(!isMap(new Set()));\nassert(!isMap(new WeakSet()));\nassert(!isMap(new WeakMap()));\n\nassert(isMap(new Map()));\n\nclass MyMap extends Map {}\nassert(isMap(new MyMap()));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[1]: https://npmjs.org/package/is-map\n[2]: https://versionbadg.es/inspect-js/is-map.svg\n[5]: https://david-dm.org/inspect-js/is-map.svg\n[6]: https://david-dm.org/inspect-js/is-map\n[7]: https://david-dm.org/inspect-js/is-map/dev-status.svg\n[8]: https://david-dm.org/inspect-js/is-map#info=devDependencies\n[11]: https://nodei.co/npm/is-map.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/is-map.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-map.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-map\n[codecov-image]: https://codecov.io/gh/inspect-js/is-map/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/is-map/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-map\n[actions-url]: https://github.com/inspect-js/is-map/actions\n","_attachments":{},"homepage":"https://github.com/inspect-js/is-map#readme","bugs":{"url":"https://github.com/inspect-js/is-map/issues"},"license":"MIT"}