{"_id":"@buildinams/use-match-media","_rev":"10-c1ff486c77c9f5133bce786b50cffee2","name":"@buildinams/use-match-media","dist-tags":{"latest":"0.2.1"},"versions":{"0.0.1":{"name":"@buildinams/use-match-media","version":"0.0.1","keywords":["react","hook","react-hook","match-media","media-query"],"author":{"url":"https://www.buildinamsterdam.com/","name":"Build in Amsterdam","email":"development@buildinamsterdam.com"},"license":"MIT","_id":"@buildinams/use-match-media@0.0.1","maintainers":[{"name":"paulomfj","email":"mfjpaulo@gmail.com"},{"name":"_brunotome_","email":"bruno@buildinamsterdam.com"},{"name":"buildinamsterdam","email":"maikel@buildinamsterdam.com"}],"homepage":"https://github.com/buildinamsterdam/use-match-media#readme","bugs":{"url":"https://github.com/buildinamsterdam/use-match-media/issues"},"dist":{"shasum":"b4563f656beebafbdcb246d7d70e990d9898ae6b","tarball":"https://registry.npmjs.org/@buildinams/use-match-media/-/use-match-media-0.0.1.tgz","fileCount":21,"integrity":"sha512-klvS5xsNsuchenf9yy3Uh+olWeztr8IMSLCJRISAvEPHt/1ypopVcACXYa5bzVgkzMJvndBTdt92V5LtL8Id7Q==","signatures":[{"sig":"MEUCIQDuwdJmGayTNiBaEBCHxZloUU4SZtXZEMzDwrqM5hYLpQIgAzPOk1xarNwytUuyQAF7EbgyCkCwO+YFpLeH1IBeO8Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16475,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxQ39ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodDA//c+92prcatTF/7P5RNBXkQwNkwVKd+kcgeYJ4MX8G54BqoJM0\r\nttxj4BeFxANkjvVWz4gEmrGOzaC16PyB+kWC0ohUCoTSSlXZJDVe8SY32Ohu\r\nq46l3ad7dKLm8SGtkBQ2+QQEL6Z32PRbSeNoY+lpmqWJ+D16sNcxSGYMPZ8O\r\n0PGcFA5i59x7ACBXzK/+65uhpwPaPFQXxsXOPFqveafu+Ar3gmIuoTwjqfad\r\n12slbQQoD9TcXmGEWWofvvXF883MeawqEuy0CBRgDX5VKh2oMmBzeAMe77nM\r\nVNRCC+1MY9xI5/X0fV9WRbNxtO4G8oCo6Hi1S7TgF1eIbNctmVeCmch0EHpZ\r\nyF95UrC0Y+EWiT0azaS3Z+9Uq0grjZiSHE5mUdlB9i4eEDUpq5t8snC8N85Q\r\n3F65PHFv2aN9dgB+ovohrQNJtmJWCS7Qh74fBrbNCZyMDtBGheH7xhTvK/Im\r\nnr+skUSSe6HXRmEgT/nSpZFXU7nnGOkp0AzdPbBpXiis2RNyl689TO2RMfmn\r\npprZHEjinBzZaP/lGjQjM/xEh8F3nNtBanNgb/yhl+TsOJlPyVyYFor8iHXl\r\nF3T5EcuLOGuRldjQZ95LG1IQrelmujVEEb9vqOryx8UGCaLCTKG2K3hoOH+0\r\ne2W18jF8rbzAIsGTs0XKFsHaRpvaGRuL9R4=\r\n=HNid\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"3c22da91f1466e6aa2aa7bd2e7311491933bf4db","scripts":{"fix":"npm-run-all --sequential fix:*","lint":"NODE_ENV=test npm-run-all --parallel lint:*","test":"jest","build":"tsc","fix:js":"eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix","coverage":"jest --coverage","depcheck":"npx npm-check --update","fix:format":"prettier \"**/*.{md,yml}\" --write","test:watch":"jest --watch","build:types":"tsc --emitDeclarationOnly","lint:format":"prettier \"**/*.{md,yml}\" --check","lint:script":"eslint \"src/**/*.{ts,tsx}\"","lint:type-check":"tsc --noEmit"},"_npmUser":{"name":"paulomfj","email":"mfjpaulo@gmail.com"},"repository":{"url":"git+https://github.com/buildinamsterdam/use-match-media.git","type":"git"},"_npmVersion":"8.19.3","description":"Stateful hook that uses the matchMedia API.","directories":{},"_nodeVersion":"18.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","babel":"^6.23.0","eslint":"^8.31.0","ts-jest":"^29.0.3","ts-node":"^10.9.1","prettier":"^2.8.2","react-dom":"^18.0.0","typescript":"^4.9.4","@types/jest":"^29.2.5","@types/node":"^18.11.18","npm-run-all":"^4.1.5","@types/react":"^18.0.26","@types/react-dom":"^18.0.10","@babel/preset-env":"^7.20.2","eslint-plugin-react":"^7.32.0","jest-matchmedia-mock":"^1.1.0","@testing-library/react":"^13.4.0","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","jest-environment-jsdom":"^29.3.1","@babel/preset-typescript":"^7.18.6","@typescript-eslint/parser":"^5.48.1","eslint-plugin-unused-imports":"^2.0.0","@typescript-eslint/eslint-plugin":"^5.48.1","eslint-plugin-simple-import-sort":"^8.0.0"},"peerDependencies":{"react":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use-match-media_0.0.1_1673858556784_0.7230462960840773","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@buildinams/use-match-media","version":"0.0.2","keywords":["react","hook","react-hook","match-media","media-query"],"author":{"url":"https://www.buildinamsterdam.com/","name":"Build in Amsterdam","email":"development@buildinamsterdam.com"},"license":"MIT","_id":"@buildinams/use-match-media@0.0.2","maintainers":[{"name":"paulomfj","email":"mfjpaulo@gmail.com"},{"name":"_brunotome_","email":"bruno@buildinamsterdam.com"},{"name":"buildinamsterdam","email":"maikel@buildinamsterdam.com"}],"homepage":"https://github.com/buildinamsterdam/use-match-media#readme","bugs":{"url":"https://github.com/buildinamsterdam/use-match-media/issues"},"dist":{"shasum":"642fad854cf5d434a1e93f40c39c75a893d507db","tarball":"https://registry.npmjs.org/@buildinams/use-match-media/-/use-match-media-0.0.2.tgz","fileCount":21,"integrity":"sha512-OXmx5R85n1DDq+fY/3mxgzmxoQYiL2YaOXszztY2usiVp5b5S3rowNE+lDY5Pvr7KEUNI1KFwub3TFMNxIZfjw==","signatures":[{"sig":"MEUCICQiNhrgEBQ0QG7cbzGxy/8w99fgXMU1KkMfIZRLZrqtAiEA67WD4VU/DVtPKto8akn9JvJqOzZynfjehFFftBaj0zA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16487,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxSFCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpxkw//YQ9hcz6NPVXIXHcT5S0RAqdg7A+P0C2SXtsry7XzaqStwBOD\r\nCP5uR9OHmyvM0/Kjrf/0j6dBCKVxg1JrYiHdJxrVYsV66tX2/BNQ6GaurdKo\r\nYfygGWcFKLekJDw5ul/u5ZouwU8HTPr+rrm5jS83aPP1QqaSgEhRABIpLO6B\r\n2vwme15fCHuianJmr6obUZ4NpywjtilayW+mM3h8Dg5p0p2N+wwXDyVALVH9\r\n+VEJ7I0DloFnRh3PA3Tn57abwqA2sGbAeKF/LKr8oyC5iCUTIGJ37R3Zkpin\r\no75BkvOdjOc8d5UI3m9O9EWcFtNzQsmQ3+hTt9fCgJ5ZWFom9KuQEuqWoFNI\r\nnimNsi7ob7SqRPC7MwRM2121X9ldROQjeiyjQwefhq5mpywq0W+SnlkdTllC\r\nuzFOFEppaU5CN8cqUSn240mUpcGjnmaeqsBW74KA0LqSUtOxS7vZXxYqa3el\r\nLCxEyZEDjZ0C22jGJElVigAddwvjSQ0XxsgbQr0NNSaW5ZQwxU6V6sbv6Kw8\r\nlSg/rtp10m5OdtHJZMo9nnRv4AjeDw4dpvE5bePXp4WMSctaFRtrbMq/Mpju\r\nEKy2kws5yba6ZvKr1jcYkUoEYtLFL3C/lYYGBNYcGYP8K/3ZLn6lx6GPOAlN\r\ndl2y8y6jX+jnzonAnFrI5BEVF1HLUF4FqkI=\r\n=Poyz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"316810e4f272da38dcbe40800756e33102d158ed","scripts":{"fix":"npm-run-all --sequential fix:*","lint":"NODE_ENV=test npm-run-all --parallel lint:*","test":"jest","build":"tsc","fix:js":"eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix","coverage":"jest --coverage","depcheck":"npx npm-check --update","fix:format":"prettier \"**/*.{md,yml}\" --write","test:watch":"jest --watch","build:types":"tsc --emitDeclarationOnly","lint:format":"prettier \"**/*.{md,yml}\" --check","lint:script":"eslint \"src/**/*.{ts,tsx}\"","lint:type-check":"tsc --noEmit"},"_npmUser":{"name":"paulomfj","email":"mfjpaulo@gmail.com"},"repository":{"url":"git+https://github.com/buildinamsterdam/use-match-media.git","type":"git"},"_npmVersion":"8.19.3","description":"Stateful hook that uses the matchMedia API.","directories":{},"_nodeVersion":"18.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","babel":"^6.23.0","eslint":"^8.31.0","ts-jest":"^29.0.3","ts-node":"^10.9.1","prettier":"^2.8.2","react-dom":"^18.0.0","typescript":"^4.9.4","@types/jest":"^29.2.5","@types/node":"^18.11.18","npm-run-all":"^4.1.5","@types/react":"^18.0.26","@types/react-dom":"^18.0.10","@babel/preset-env":"^7.20.2","eslint-plugin-react":"^7.32.0","jest-matchmedia-mock":"^1.1.0","@testing-library/react":"^13.4.0","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","jest-environment-jsdom":"^29.3.1","@babel/preset-typescript":"^7.18.6","@typescript-eslint/parser":"^5.48.1","eslint-plugin-unused-imports":"^2.0.0","@typescript-eslint/eslint-plugin":"^5.48.1","eslint-plugin-simple-import-sort":"^8.0.0"},"peerDependencies":{"react":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use-match-media_0.0.2_1673863490606_0.7368714212087704","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@buildinams/use-match-media","version":"0.0.3","keywords":["react","hook","react-hook","match-media","media-query"],"author":{"url":"https://www.buildinamsterdam.com/","name":"Build in Amsterdam","email":"development@buildinamsterdam.com"},"license":"MIT","_id":"@buildinams/use-match-media@0.0.3","maintainers":[{"name":"paulomfj","email":"mfjpaulo@gmail.com"},{"name":"_brunotome_","email":"bruno@buildinamsterdam.com"},{"name":"buildinamsterdam","email":"maikel@buildinamsterdam.com"}],"homepage":"https://github.com/buildinamsterdam/use-match-media#readme","bugs":{"url":"https://github.com/buildinamsterdam/use-match-media/issues"},"dist":{"shasum":"ce4250de06640fdea100c54b48fdf0d4f230f0cf","tarball":"https://registry.npmjs.org/@buildinams/use-match-media/-/use-match-media-0.0.3.tgz","fileCount":27,"integrity":"sha512-75Puy6m9DRG72YFP6uW50njRD+VMBYS3YYdeYNxHdT6gPsBUJHOQlKgRXVWAW7EFMRCXXVrfp1Z76jO+21CCSQ==","signatures":[{"sig":"MEUCIGnOh4K8o8XpK7CPMTUaiym/R7UmTqi8rVTTmnEAxWiJAiEAgBhy/Ur++1LpfOKd0YE5UaSpI4g+TZFuALKdZIT0DL8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxSmDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpNAw/9HLARqKAeA9SGGsLfkapJYqq/xo7NQwIP0WqQUlY6vV6te954\r\n8UxtiJr+VHBno2UeXwJOX0Begg0Dr0bWV85Jm8ngSHsV0eifP9H89Y6i8Cc6\r\ne4XGKgG88r7a2vj8kbsJXKgiGNbQuGMY9bh1siBWBCONsexd0/wKi5ufpnsU\r\n3Ew4EWyIXwp/JsY7krDf2fQ75v3TA78gMvXgegPxzsKcSwfkEnbUK5XShrcO\r\nkckTh6zgRTUbKU6+Z97SZJ7Hv15RKIMdqkWcwk0+GcBUGkNtVFuSRCfghoV0\r\nk7Cu5x4qYBRRIj9JQxTphzE5o7iptQp6rbXJM9JYjxKh6CoYllwPGssqRUr1\r\ntYmtqzASgUE+A/x500P6QIiTzX9L9Ujx6xZr0Ip+6oFFF8M25E8yGdLMwTN0\r\nLb52u0ZPErKVw2yPuSzGsdfuDMlACt1fxoZfOmADyokY7+xhKsc6n/DMsDYp\r\nOHP68j08iSfoGJ1H7gHMIbuTifArD+IVMM6FDxwcuazgYANZhdb+3qpL+3Hr\r\nZRlJYJaPnpquuytFSCmKX4Z9uXwFeb4YcbXqyk05zNPGb+Zqr+glakynso4U\r\n5cchYeRYOE4RD5SdlIIAYum6BsWstz8l7frmR8rTVuX888L4r0N40Yx0pTHj\r\nKGleCaR9f2ptuXUH7nEAA1LYBjQHrsmD5XU=\r\n=OZ+h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5869b0c8c3f145402531850d59e44bf4f5f6babc","scripts":{"fix":"npm-run-all --sequential fix:*","lint":"NODE_ENV=test npm-run-all --parallel lint:*","test":"jest","build":"tsc","fix:js":"eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix","coverage":"jest --coverage","depcheck":"npx npm-check --update","fix:format":"prettier \"**/*.{md,yml}\" --write","test:watch":"jest --watch","build:types":"tsc --emitDeclarationOnly","lint:format":"prettier \"**/*.{md,yml}\" --check","lint:script":"eslint \"src/**/*.{ts,tsx}\"","prepublishOnly":"npm run build","lint:type-check":"tsc --noEmit"},"_npmUser":{"name":"paulomfj","email":"mfjpaulo@gmail.com"},"repository":{"url":"git+https://github.com/buildinamsterdam/use-match-media.git","type":"git"},"_npmVersion":"8.19.3","description":"Stateful hook that uses the matchMedia API.","directories":{},"_nodeVersion":"18.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","babel":"^6.23.0","eslint":"^8.31.0","ts-jest":"^29.0.3","ts-node":"^10.9.1","prettier":"^2.8.2","react-dom":"^18.0.0","typescript":"^4.9.4","@types/jest":"^29.2.5","@types/node":"^18.11.18","npm-run-all":"^4.1.5","@types/react":"^18.0.26","@types/react-dom":"^18.0.10","@babel/preset-env":"^7.20.2","eslint-plugin-react":"^7.32.0","jest-matchmedia-mock":"^1.1.0","@testing-library/react":"^13.4.0","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","jest-environment-jsdom":"^29.3.1","@babel/preset-typescript":"^7.18.6","@typescript-eslint/parser":"^5.48.1","eslint-plugin-unused-imports":"^2.0.0","@typescript-eslint/eslint-plugin":"^5.48.1","eslint-plugin-simple-import-sort":"^8.0.0"},"peerDependencies":{"react":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use-match-media_0.0.3_1673865603538_0.31604988734299244","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@buildinams/use-match-media","version":"0.0.4","keywords":["react","hook","react-hook","match-media","media-query"],"author":{"url":"https://www.buildinamsterdam.com/","name":"Build in Amsterdam","email":"development@buildinamsterdam.com"},"license":"MIT","_id":"@buildinams/use-match-media@0.0.4","maintainers":[{"name":"paulomfj","email":"mfjpaulo@gmail.com"},{"name":"_brunotome_","email":"bruno@buildinamsterdam.com"},{"name":"buildinamsterdam","email":"maikel@buildinamsterdam.com"}],"homepage":"https://github.com/buildinamsterdam/use-match-media#readme","bugs":{"url":"https://github.com/buildinamsterdam/use-match-media/issues"},"dist":{"shasum":"d99791e9840ee4979bef8a52c2757ec3dd50bdbd","tarball":"https://registry.npmjs.org/@buildinams/use-match-media/-/use-match-media-0.0.4.tgz","fileCount":27,"integrity":"sha512-AbGlOcL1+oMHhxiM0KikMgBBEP74Sz08eyiIH8rM6CIT/jQnOy8zcH3Ah+5GsFleKWJ0JCgZfozKkmMLZKS49Q==","signatures":[{"sig":"MEUCIE4T8YPjyYLSkyFSv0QIWYEZsqwHLlX5r7ppWEK+LfPJAiEA298qln8PyrEmst/Ob1XRIdPy3ud704iVU64lfrFqlRY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxTA6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqH4g//QWAz6AxMhw7JOrAIEWXJ0HOxOFijGRrIOT6rTz2MUQlEGVZ9\r\nSnKpu2ZkVPC2iiZdV3rQzNHeA/gYmFUTRjvW/JMZjircfKqPt/6nPeHG42sr\r\nTnxTRPhxTMhuQvnUzNC448WEwL+eCvpv7Yu5WJsFfRGqtRdCepPChYm5P+75\r\nwEFZoZA98Hx/QQEZIsrqGPAOcjzhZPH3n5IA4j4Fj/h7Klhd6nImuuFv8BUo\r\nLdTbYVHhoiSNxBJ8cDBdNhni9q4OzjS14XvXxGsAKNWlzX55eKhttycmOcJg\r\nWcnkcq+WJPpqkQ0sMmUqMQT52fmGy/9zcSquWb3o9KaAI+phNnllNgTP+IOK\r\nLGvFYt/HHAFFm+xJ8qqwwcKiwIOZTYhY9uCl38X06b2Pwptjk6sHNZ4LpUhv\r\niodjPprdt3AUO7tBL5kpqj+knLG4yjYuy4TUcXMmYQwIialeJBqigjDz2imZ\r\nTZMLbQAROHjIBYK/YuNSpE/FJXVZyDyVPkgnEMWIMryaoDgdU7dGfpF4a/Yv\r\nTIm+epnNMYhngmXXGiLd2ianwWJK0sLcfk0ammXgvXxq8ImaVN6HZjHWU+nD\r\nkz9N+DD+rJMSv0m0/YJzD+wMnoELYxw6vzEZNwnhTlIxSpuMvXXpVA+088jI\r\nyGbVSt0W+pvcpYqpkdg13nwiN2tYJTflFM0=\r\n=tEOw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"19d53ee84203bcf6f1d2e881f6169da9b3765bed","scripts":{"fix":"npm-run-all --sequential fix:*","lint":"NODE_ENV=test npm-run-all --parallel lint:*","test":"jest","build":"tsc","fix:js":"eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix","coverage":"jest --coverage","depcheck":"npx npm-check --update","fix:format":"prettier \"**/*.{md,yml}\" --write","test:watch":"jest --watch","build:types":"tsc --emitDeclarationOnly","lint:format":"prettier \"**/*.{md,yml}\" --check","lint:script":"eslint \"src/**/*.{ts,tsx}\"","prepublishOnly":"npm run build","lint:type-check":"tsc --noEmit"},"_npmUser":{"name":"paulomfj","email":"mfjpaulo@gmail.com"},"repository":{"url":"git+https://github.com/buildinamsterdam/use-match-media.git","type":"git"},"_npmVersion":"8.19.3","description":"Stateful hook that uses the matchMedia API.","directories":{},"_nodeVersion":"18.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","babel":"^6.23.0","eslint":"^8.31.0","ts-jest":"^29.0.3","ts-node":"^10.9.1","prettier":"^2.8.2","react-dom":"^18.0.0","typescript":"^4.9.4","@types/jest":"^29.2.5","@types/node":"^18.11.18","npm-run-all":"^4.1.5","@types/react":"^18.0.26","@types/react-dom":"^18.0.10","@babel/preset-env":"^7.20.2","eslint-plugin-react":"^7.32.0","jest-matchmedia-mock":"^1.1.0","@testing-library/react":"^13.4.0","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","jest-environment-jsdom":"^29.3.1","@babel/preset-typescript":"^7.18.6","@typescript-eslint/parser":"^5.48.1","eslint-plugin-unused-imports":"^2.0.0","@typescript-eslint/eslint-plugin":"^5.48.1","eslint-plugin-simple-import-sort":"^8.0.0"},"peerDependencies":{"react":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use-match-media_0.0.4_1673867322630_0.23068596400587849","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"@buildinams/use-match-media","version":"0.0.6","keywords":["react","hook","react-hook","match-media","media-query"],"author":{"url":"https://www.buildinamsterdam.com/","name":"Build in Amsterdam","email":"development@buildinamsterdam.com"},"license":"MIT","_id":"@buildinams/use-match-media@0.0.6","maintainers":[{"name":"paulomfj","email":"mfjpaulo@gmail.com"},{"name":"_brunotome_","email":"bruno@buildinamsterdam.com"},{"name":"buildinamsterdam","email":"maikel@buildinamsterdam.com"}],"homepage":"https://github.com/buildinamsterdam/use-match-media#readme","bugs":{"url":"https://github.com/buildinamsterdam/use-match-media/issues"},"dist":{"shasum":"95f73200a5857850d8387a29ae347b6d6239b54f","tarball":"https://registry.npmjs.org/@buildinams/use-match-media/-/use-match-media-0.0.6.tgz","fileCount":27,"integrity":"sha512-PBo0yPVro59skFNP3gC7WGatiAR6fpQ53ElcqE+ik8RYLVkxLRbPZrxP+YRc2IFMxtu0EFxvWPMf3rpIDBlnSA==","signatures":[{"sig":"MEUCIEthVlUCKDUOpZf36hLqgcDQWfEjFgWyuQ0CMNCzP1V3AiEAhkGMFG0KlU4WllmnCdu/S3WPwtaST3xbNcgEao3SUoI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27638,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0R6NACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKzQ/+IAtXkSUNSlbstQzdovJuk+jVznS2QyfitiOl6nh/t7RT7NZs\r\nnkH/vkZAwYpi/RqUtk4dvAo2zjRHzWaI4XqbNP5/i6QNiNxeHmVxTE1W7ej2\r\nPWJ6KGXTo+HgvqzYgD8mlEadI7u302tg7aWqwdjx3kUoJlf5Yfl2BUYWthtJ\r\nxVO6EWTayRoDavsx2JIhm/hru0u5X3MQhGwhc+b8rVtTdGp8YRTM+Jp7KFL4\r\nQJTWU/bigmQt7Kp+wUnk7GPIBzbezwbxEpVULJGZPPNqCGrcqmJVhs+a6eJB\r\ndTK1u6WXW+D+lCugyBYvo0q8wbj+6s/d3axWLgYUTa+iFL1fRRq04RPIdvq3\r\nRmflhzfA3RIZ3NlB5CXtv0v4B9JLOnADico8eBP675akF1FvmctLuAnh7p5u\r\n49hwwDiMXY5R3APqgj5ZErR6Qhm592MeoaFRok34HLp3OhkWpc2pq02814xE\r\n6ZIGUYk9BztHc+PGr6AdqDOhRX61nDhNM2eJn3uumhFWH3BRgWyUoUsb9qwI\r\noMal3HTUU8qW1gOOt7ACz2WnIK9pV97a2OYQatHs+TBh0vMVH446ROb9t2qc\r\nvLelIin5gj5HiJ9NXjgoDjX2b5QJyJY/dRbHNDIFI2ukbaGYZo3Pr2B35CR6\r\nWvZ6mzJsz2n0EXiqH7tQJ+UmSbBCizOStMo=\r\n=IHON\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5046d0c07558c7d317995e3c266966f18e0a2591","scripts":{"fix":"npm-run-all --sequential fix:*","lint":"NODE_ENV=test npm-run-all --parallel lint:*","test":"jest","build":"tsc","fix:js":"eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix","coverage":"jest --coverage","depcheck":"npx npm-check --update","fix:format":"prettier \"**/*.{md,yml}\" --write","test:watch":"jest --watch","build:types":"tsc --emitDeclarationOnly","lint:format":"prettier \"**/*.{md,yml}\" --check","lint:script":"eslint \"src/**/*.{ts,tsx}\"","prepublishOnly":"npm run build","lint:type-check":"tsc --noEmit"},"_npmUser":{"name":"paulomfj","email":"mfjpaulo@gmail.com"},"repository":{"url":"git+https://github.com/buildinamsterdam/use-match-media.git","type":"git"},"_npmVersion":"8.19.3","description":"Stateful hook that uses the matchMedia API.","directories":{},"_nodeVersion":"18.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","babel":"^6.23.0","ts-jest":"^29.0.3","ts-node":"^10.9.1","react-dom":"^18.0.0","typescript":"^4.9.4","@types/jest":"^29.2.5","@types/node":"^18.11.18","npm-run-all":"^4.1.5","@types/react":"^18.0.26","@buildinams/lint":"^0.0.3","@types/react-dom":"^18.0.10","@babel/preset-env":"^7.20.2","jest-matchmedia-mock":"^1.1.0","@testing-library/react":"^13.4.0","jest-environment-jsdom":"^29.3.1","@babel/preset-typescript":"^7.18.6"},"peerDependencies":{"react":">=17.0.0 || 18"},"_npmOperationalInternal":{"tmp":"tmp/use-match-media_0.0.6_1674649229776_0.2426485129684981","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"@buildinams/use-match-media","version":"0.1.0","keywords":["react","hook","react-hook","match-media","media-query"],"author":{"url":"https://www.buildinamsterdam.com/","name":"Build in Amsterdam","email":"development@buildinamsterdam.com"},"license":"MIT","_id":"@buildinams/use-match-media@0.1.0","maintainers":[{"name":"paulomfj","email":"mfjpaulo@gmail.com"},{"name":"_brunotome_","email":"bruno@buildinamsterdam.com"},{"name":"buildinamsterdam","email":"maikel@buildinamsterdam.com"}],"homepage":"https://github.com/buildinamsterdam/use-match-media#readme","bugs":{"url":"https://github.com/buildinamsterdam/use-match-media/issues"},"dist":{"shasum":"121719a9386f04ae3eb467a307efcf62bdb91c64","tarball":"https://registry.npmjs.org/@buildinams/use-match-media/-/use-match-media-0.1.0.tgz","fileCount":30,"integrity":"sha512-tsNYL0Zlmcs+xGFOoIfeXaj8dHdgYThB1rHhI6WsEN0ZuqVURWbO5YcqrFm5uUvk213E9FDZRS1dDjKtchkncw==","signatures":[{"sig":"MEUCID6OI9tM44i6BhIPE8YrrBr70XbGMsWWSr8ks+gsm+jHAiEA8okuEoDznjGZESj3Z0VQ1p/ohirNZAR9hmKd7DoSAjc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31055},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"714f680c05f3bffa0146bae182a1822e135095c4","scripts":{"fix":"npm-run-all --sequential fix:*","lint":"NODE_ENV=test npm-run-all --parallel lint:*","test":"jest","build":"tsc","fix:js":"eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix","coverage":"jest --coverage","depcheck":"npx npm-check --update","fix:format":"prettier \"**/*.{md,yml}\" --write","test:watch":"jest --watch","build:types":"tsc --emitDeclarationOnly","lint:format":"prettier \"**/*.{md,yml}\" --check","lint:script":"eslint \"src/**/*.{ts,tsx}\"","prepublishOnly":"npm run build","lint:type-check":"tsc --noEmit"},"_npmUser":{"name":"paulomfj","email":"mfjpaulo@gmail.com"},"repository":{"url":"git+https://github.com/buildinamsterdam/use-match-media.git","type":"git"},"_npmVersion":"9.6.7","description":"Stateful hook that uses the matchMedia API.","directories":{},"_nodeVersion":"18.17.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","babel":"^6.23.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","react-dom":"^18.0.0","typescript":"^5.1.6","@types/jest":"^29.5.3","@types/node":"^20.4.1","npm-run-all":"^4.1.5","@types/react":"^18.2.14","@buildinams/lint":"^0.2.1","@types/react-dom":"^18.2.6","@babel/preset-env":"^7.22.7","jest-matchmedia-mock":"^1.1.0","@testing-library/react":"^14.0.0","jest-environment-jsdom":"^29.6.1","@babel/preset-typescript":"^7.22.5"},"peerDependencies":{"react":">=17.0.0 || 18"},"_npmOperationalInternal":{"tmp":"tmp/use-match-media_0.1.0_1690877606060_0.19098834379337593","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"@buildinams/use-match-media","version":"0.2.1","keywords":["react","hook","react-hook","match-media","media-query"],"author":{"url":"https://www.buildinamsterdam.com/","name":"Build in Amsterdam","email":"development@buildinamsterdam.com"},"license":"MIT","_id":"@buildinams/use-match-media@0.2.1","maintainers":[{"name":"paulomfj","email":"mfjpaulo@gmail.com"},{"name":"_brunotome_","email":"bruno@buildinamsterdam.com"},{"name":"buildinamsterdam","email":"maikel@buildinamsterdam.com"}],"homepage":"https://github.com/buildinamsterdam/use-match-media#readme","bugs":{"url":"https://github.com/buildinamsterdam/use-match-media/issues"},"dist":{"shasum":"a1710716994808bae0b45f45136507eb54262b8a","tarball":"https://registry.npmjs.org/@buildinams/use-match-media/-/use-match-media-0.2.1.tgz","fileCount":28,"integrity":"sha512-7KQMWgBlhxsKnoxTlLEMJXwWpQQkbFBiGVBAH53OL1GpmyrxsWMDIfoqcG8lbgnn53DVmv70a3RoeBK0fm3X9g==","signatures":[{"sig":"MEYCIQCdLUKl6HAzJUA9jsjTOnXENlhqvIHrhamx3oFpNtekYQIhAP9y7jaT7/ORgW+gaY/Bgkg5bh+ofYTtu3rU+hcN61yk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28811},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e2daf88776a26ef33e527a90ea49de2a6f492988","scripts":{"fix":"npm-run-all --sequential fix:*","lint":"NODE_ENV=test npm-run-all --parallel lint:*","test":"jest","build":"tsc","fix:js":"eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix","coverage":"jest --coverage","depcheck":"npx npm-check --update","fix:format":"prettier \"**/*.{md,yml}\" --write","test:watch":"jest --watch","build:types":"tsc --emitDeclarationOnly","lint:format":"prettier \"**/*.{md,yml}\" --check","lint:script":"eslint \"src/**/*.{ts,tsx}\"","prepublishOnly":"npm run build","lint:type-check":"tsc --noEmit"},"_npmUser":{"name":"paulomfj","email":"mfjpaulo@gmail.com"},"repository":{"url":"git+https://github.com/buildinamsterdam/use-match-media.git","type":"git"},"_npmVersion":"10.2.3","description":"Stateful hook that uses the matchMedia API.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","babel":"^6.23.0","ts-jest":"^29.1.1","ts-node":"^10.9.2","react-dom":"^18.0.0","typescript":"^5.3.3","@types/jest":"^29.5.11","@types/node":"^20.11.3","npm-run-all":"^4.1.5","@types/react":"^18.2.48","@buildinams/lint":"^0.4.0","@types/react-dom":"^18.2.18","@babel/preset-env":"^7.23.8","jest-matchmedia-mock":"^1.1.0","@testing-library/react":"^14.1.2","jest-environment-jsdom":"^29.7.0","@babel/preset-typescript":"^7.23.3"},"peerDependencies":{"react":">=17.0.0 || 18"},"_npmOperationalInternal":{"tmp":"tmp/use-match-media_0.2.1_1706716542155_0.21269008421251168","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-01-16T08:42:36.703Z","modified":"2025-12-19T15:31:16.002Z","0.0.1":"2023-01-16T08:42:36.983Z","0.0.2":"2023-01-16T10:04:50.731Z","0.0.3":"2023-01-16T10:40:03.753Z","0.0.4":"2023-01-16T11:08:42.841Z","0.0.6":"2023-01-25T12:20:29.960Z","0.1.0":"2023-08-01T08:13:26.256Z","0.2.1":"2024-01-31T15:55:42.339Z"},"bugs":{"url":"https://github.com/buildinamsterdam/use-match-media/issues"},"author":{"url":"https://www.buildinamsterdam.com/","name":"Build in Amsterdam","email":"development@buildinamsterdam.com"},"license":"MIT","homepage":"https://github.com/buildinamsterdam/use-match-media#readme","keywords":["react","hook","react-hook","match-media","media-query"],"repository":{"url":"git+https://github.com/buildinamsterdam/use-match-media.git","type":"git"},"description":"Stateful hook that uses the matchMedia API.","maintainers":[{"email":"maikel@buildinamsterdam.com","name":"buildinamsterdam"},{"email":"bruno@buildinamsterdam.com","name":"_brunotome_"},{"email":"folkert-jan@buildinamsterdam.com","name":"folkertjan"},{"email":"maarten@obelism.studio","name":"maartenbruggink"}],"readme":"# use-match-media\n\n[![NPM version][npm-image]][npm-url]\n[![Actions Status][ci-image]][ci-url]\n[![PR Welcome][npm-downloads-image]][npm-downloads-url]\n\nStateful hook that uses the matchMedia [API](https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia).\n\n## Introduction\n\nThis hook optimizes the use of the match media API by only creating a new listener when a unique query is made, avoiding the creation of unnecessary listeners and increasing efficiency.\n\nThis library is also SSR safe, and a default value can be provided for the initial render.\n\n## Installation\n\nInstall this package with `npm`.\n\n```bash\nnpm i @buildinams/use-match-media\n```\n\n## Usage\n\nTo use the library simply import the hook and pass any custom media query.\n\n```tsx\nimport useMatchMedia from \"@buildinams/use-match-media\";\n\nconst MyComponent = () => {\n  const isTouch = useMatchMedia(\"(pointer: coarse)\");\n  ...\n};\n```\n\nYou can even use multiple queries in a single call. Though we recommend using separate hooks for each query to maximize performance.\n\n```tsx\nimport useMatchMedia from \"@buildinams/use-match-media\";\n\nconst MyComponent = () => {\n  const isTouchAndPortrait = useMatchMedia(\"(pointer: coarse) and (orientation: portrait)\");\n   ...\n};\n```\n\n## Using 'defaultValue'\n\nIf you want to provide a default value for the initial render (and in server), you can pass it as `defaultValue` within the _optional_ config object. This accepts `boolean`, `undefined`, or `null`. For example:\n\n```tsx\nimport useMatchMedia from \"@buildinams/use-match-media\";\n\nconst MyComponent = () => {\n  const isSmall = useMatchMedia(\"(max-width: 768px)\", { defaultValue: true });\n  ...\n};\n```\n\nCouple things to **note**:\n\n- The default value will only be used on the initial render and SSR. By the second render, the hook will use the actual value matched.\n- If theres already a match for the query, the hook will use the actual value matched instead of the default value.\n- If left blank, the default value will be `false`.\n\n## Conditionally Listening to Events\n\nYou can conditionally listen to events by passing a `isEnabled` prop in the config object. This accepts a `boolean` value, and will only listen to events if the value is `true` (default). For example:\n\n```tsx\nimport useMatchMedia from \"@buildinams/use-match-media\";\n\nconst MyComponent = () => {\n  const [isEnabled, setIsEnabled] = useState(false);\n\n  const isSmall = useMatchMedia(\"(max-width: 768px)\", { isEnabled });\n  ...\n};\n```\n\n## Using Layout Effect\n\nBy default, the hook will use `useEffect` to listen to events. However, you can use `useLayoutEffect` instead by passing `layoutEffect` in the config object. For example:\n\n```tsx\nimport useMatchMedia from \"@buildinams/use-match-media\";\n\nconst MyComponent = () => {\n  const isSmall = useMatchMedia(\"(max-width: 768px)\", { layoutEffect: true });\n  ...\n};\n```\n\nThis is SSR safe, and will only use `useLayoutEffect` on the client.\n\n## Requirements\n\nThis library requires a minimum React version of `17.0.0`.\n\n## Requests and Contributing\n\nFound an issue? Want a new feature? Get involved! Please contribute using our guideline [here](https://github.com/buildinamsterdam/use-match-media/blob/main/CONTRIBUTING.md).\n\n[npm-image]: https://img.shields.io/npm/v/@buildinams/use-match-media.svg?style=flat-square&logo=react\n[npm-url]: https://npmjs.org/package/@buildinams/use-match-media\n[ci-image]: https://github.com/buildinamsterdam/use-match-media/actions/workflows/test.yml/badge.svg\n[ci-url]: https://github.com/buildinamsterdam/use-match-media/actions\n[npm-downloads-image]: https://img.shields.io/npm/dm/@buildinams/use-match-media.svg\n[npm-downloads-url]: https://npmcharts.com/compare/@buildinams/use-match-media?minimal=true\n","readmeFilename":"README.md"}