{"_id":"@danielvigaru/check-type-of","_rev":"13-af225e0112a8df08f42b8c87c1f92893","name":"@danielvigaru/check-type-of","dist-tags":{"latest":"1.0.7"},"versions":{"0.0.0":{"name":"@danielvigaru/check-type-of","version":"0.0.0","keywords":["check","type","typesafe","validation"],"author":{"name":"Daniel Vigaru"},"license":"ISC","_id":"@danielvigaru/check-type-of@0.0.0","maintainers":[{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"}],"homepage":"https://github.com/danielvigaru/check-type-of#readme","bugs":{"url":"https://github.com/danielvigaru/check-type-of/issues"},"dist":{"shasum":"15beb6c84a48678ecf02da7349174f33805d5adf","tarball":"https://registry.npmjs.org/@danielvigaru/check-type-of/-/check-type-of-0.0.0.tgz","fileCount":7,"integrity":"sha512-9zKZYXlaf6q17hAApF5twDJgLQBxNPMHZQIezuqPfmMBAcascH8TsJgUmO81QQ2i3vrIVbhHqUuWnmLC403chQ==","signatures":[{"sig":"MEQCIHvSCyMAUbdsKFuj7h28Uv5f4H0DUsiE8k8G1yHqy2+XAiBotwYwQrL8ZLOiMc+tKIbRFRCrUw7JUfDPDCvKbVIfsQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12565},"module":"lib/index.js","exports":{"import":"./lib/index.js"},"gitHead":"d010bbf3904218d01b492b7d442135cd04b7c4e5","scripts":{"build":"tsc","prebuild":"del-cli lib/*","test:once":"jest","test:watch":"jest --watchAll","prepublishOnly":"npm run test:once"},"_npmUser":{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"},"repository":{"url":"git+https://github.com/danielvigaru/check-type-of.git","type":"git"},"_npmVersion":"10.8.2","description":"[![CI](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml/badge.svg)](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml) [![npm](https://img.shields.io/badge/npm-FFF?style=flat&logo=npm&logoColor=fff&colo","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","dependencies":{"is-number":"^7.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","del-cli":"^5.1.0","ts-jest":"^29.2.5","typescript":"^5.6.3","@types/jest":"^29.5.13","@jest/globals":"^29.7.0","@types/is-number":"^7.0.5"},"_npmOperationalInternal":{"tmp":"tmp/check-type-of_0.0.0_1728841908639_0.5047707944947175","host":"s3://npm-registry-packages"}},"0.0.1":{"name":"@danielvigaru/check-type-of","version":"0.0.1","keywords":["check","type","typesafe","validation"],"author":{"name":"Daniel Vigaru"},"license":"ISC","_id":"@danielvigaru/check-type-of@0.0.1","maintainers":[{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"}],"homepage":"https://github.com/danielvigaru/check-type-of#readme","bugs":{"url":"https://github.com/danielvigaru/check-type-of/issues"},"dist":{"shasum":"9b800b3f9a2d5da07927d2e4b74a252a57048fca","tarball":"https://registry.npmjs.org/@danielvigaru/check-type-of/-/check-type-of-0.0.1.tgz","fileCount":7,"integrity":"sha512-X4ycOT7z0JPvI2i2vE/TQlKqchpoNzKF+4slwPGBhksJXzp+qbL2T8RV3iZhwq44yqqe8a+EPX0yrKOHnul8+g==","signatures":[{"sig":"MEUCIAUrKbRYBHJU7kfkra9BVedx/jwVGsdms/HDcHgMwj3YAiEApVYGOd8R5Tpuc0VdgDKMvfzUkmUg48iAE4fXZtKRYMM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12591},"main":"lib/index.js","types":"./lib/index.d.ts","module":"lib/index.js","exports":{"import":"./lib/index.js"},"gitHead":"7189a1c4bde29d3d628a2f857f1c32e0f9dc56da","scripts":{"build":"tsc","prebuild":"del-cli lib/*","test:once":"jest","test:watch":"jest --watchAll","prepublishOnly":"npm run test:once"},"_npmUser":{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"},"repository":{"url":"git+https://github.com/danielvigaru/check-type-of.git","type":"git"},"_npmVersion":"10.8.2","description":"[![CI](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml/badge.svg)](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml) [![npm](https://img.shields.io/badge/npm-FFF?style=flat&logo=npm&logoColor=fff&colo","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","dependencies":{"is-number":"^7.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","del-cli":"^5.1.0","ts-jest":"^29.2.5","typescript":"^5.6.3","@types/jest":"^29.5.13","@jest/globals":"^29.7.0","@types/is-number":"^7.0.5"},"_npmOperationalInternal":{"tmp":"tmp/check-type-of_0.0.1_1728842045459_0.020778646187571637","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@danielvigaru/check-type-of","version":"0.0.2","keywords":["check","type","typesafe","validation"],"author":{"name":"Daniel Vigaru"},"license":"ISC","_id":"@danielvigaru/check-type-of@0.0.2","maintainers":[{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"}],"homepage":"https://github.com/danielvigaru/check-type-of#readme","bugs":{"url":"https://github.com/danielvigaru/check-type-of/issues"},"dist":{"shasum":"563d5d70c4c3f84d8b28a176279069705a5aa9a0","tarball":"https://registry.npmjs.org/@danielvigaru/check-type-of/-/check-type-of-0.0.2.tgz","fileCount":7,"integrity":"sha512-zpxegVdx40GeKLUT5pQmpROEb2qF+YnTbhkbUY6VIHE9QZt7RnWs72IoHx1iKAwrl4DQn7l/KXfCFgUhGjqh5w==","signatures":[{"sig":"MEUCIQDKyamIMMvrp/G1SohnOhFbmvi/bc4ejOBqYFIj/aT0NwIgMB2RfF6JsLZ7TXD5auF85TXSe1UIN2lwBPfT9Ot/ykA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12611},"main":"lib/index.js","type":"module","types":"./lib/index.d.ts","module":"lib/index.js","exports":{"import":"./lib/index.js"},"gitHead":"3de8792c86847118253d95557fa89f2fb8593a5f","scripts":{"build":"tsc","prebuild":"del-cli lib/*","test:once":"jest","test:watch":"jest --watchAll","prepublishOnly":"npm run test:once"},"_npmUser":{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"},"repository":{"url":"git+https://github.com/danielvigaru/check-type-of.git","type":"git"},"_npmVersion":"10.8.2","description":"[![CI](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml/badge.svg)](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml) [![npm](https://img.shields.io/badge/npm-FFF?style=flat&logo=npm&logoColor=fff&colo","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","dependencies":{"is-number":"^7.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","del-cli":"^5.1.0","ts-jest":"^29.2.5","typescript":"^5.6.3","@types/jest":"^29.5.13","@jest/globals":"^29.7.0","@types/is-number":"^7.0.5"},"_npmOperationalInternal":{"tmp":"tmp/check-type-of_0.0.2_1728842752278_0.13041953129433503","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@danielvigaru/check-type-of","version":"1.0.1","keywords":["check","type","typesafe","validation"],"author":{"name":"Daniel Vigaru"},"license":"ISC","_id":"@danielvigaru/check-type-of@1.0.1","maintainers":[{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"}],"homepage":"https://github.com/danielvigaru/check-type-of#readme","bugs":{"url":"https://github.com/danielvigaru/check-type-of/issues"},"dist":{"shasum":"2cc3eba777475404799d94751520c5b653522921","tarball":"https://registry.npmjs.org/@danielvigaru/check-type-of/-/check-type-of-1.0.1.tgz","fileCount":5,"integrity":"sha512-RUdv2Jyz9H3wVQpRIjwcg6eKg4c9wkjGNp+XTNXPtMPhrV4zuSmnRXSC+iQOK6hNo9eJ6/QjDZ6SgmUG1pqUaQ==","signatures":[{"sig":"MEQCID02O8Pm/ABfNlSPHe3BwVT6Y0NjUL1gzpzAcUgZrautAiAOZSj9NL33xACS9uk8t4v8wI+zjqmyt4ElUru1kASTkw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12275},"main":"lib/index.js","type":"module","types":"./lib/index.d.ts","module":"lib/index.js","exports":{"import":"./lib/index.js"},"gitHead":"0581c502afa2db84b571d2f90db36d4031eade79","scripts":{"build":"tsc","prebuild":"del-cli lib/*","test:once":"jest","test:watch":"jest --watchAll","prepublishOnly":"npm run test:once && npm run build"},"_npmUser":{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"},"repository":{"url":"git+https://github.com/danielvigaru/check-type-of.git","type":"git"},"_npmVersion":"10.8.2","description":"[![CI](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml/badge.svg)](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml) [![npm](https://img.shields.io/badge/npm-FFF?style=flat&logo=npm&logoColor=fff&colo","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","dependencies":{"is-number":"^7.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","del-cli":"^5.1.0","ts-jest":"^29.2.5","typescript":"^5.6.3","@types/jest":"^29.5.13","@jest/globals":"^29.7.0","@types/is-number":"^7.0.5"},"_npmOperationalInternal":{"tmp":"tmp/check-type-of_1.0.1_1728848759697_0.6285424653680685","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@danielvigaru/check-type-of","version":"1.0.2","keywords":["check","type","typesafe","validation"],"author":{"name":"Daniel Vigaru"},"license":"ISC","_id":"@danielvigaru/check-type-of@1.0.2","maintainers":[{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"}],"homepage":"https://github.com/danielvigaru/check-type-of#readme","bugs":{"url":"https://github.com/danielvigaru/check-type-of/issues"},"dist":{"shasum":"0056bfb8618d794940f1990a72558e3b526cae92","tarball":"https://registry.npmjs.org/@danielvigaru/check-type-of/-/check-type-of-1.0.2.tgz","fileCount":6,"integrity":"sha512-uWyP6x5Sh5sxtHJEPlV48pBjcorRumx1nusBJDOfSagGWoOf0XzXDaVqjVGSG+z+U1dPfRZ7a9tVjUjLEowS+g==","signatures":[{"sig":"MEYCIQCFbFpGjVy8rpVGH4w9O/0h6KZrDckfmYI1oJMw4gQu0AIhAJ06fTy9G0uh7ZphC6WjDHVf3HlL5YZtmhHj4/xT0Fis","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13988},"main":"lib/index.js","type":"module","types":"./lib/index.d.ts","module":"lib/index.js","exports":{"import":"./lib/index.js"},"gitHead":"91dfb9674c3fef9a872a20a0c1c15a4f438ee054","scripts":{"build":"tsc","prebuild":"del-cli lib/*","test:once":"jest","test:watch":"jest --watchAll","prepublishOnly":"npm run test:once && npm run build"},"_npmUser":{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"},"repository":{"url":"git+https://github.com/danielvigaru/check-type-of.git","type":"git"},"_npmVersion":"10.8.2","description":"[![CI](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml/badge.svg)](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml) [![npm](https://img.shields.io/badge/npm-FFF?style=flat&logo=npm&logoColor=fff&colo","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","dependencies":{"is-number":"^7.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","del-cli":"^5.1.0","ts-jest":"^29.2.5","typescript":"^5.6.3","@types/jest":"^29.5.13","@jest/globals":"^29.7.0","@types/is-number":"^7.0.5"},"_npmOperationalInternal":{"tmp":"tmp/check-type-of_1.0.2_1728927406421_0.13672886990673327","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@danielvigaru/check-type-of","version":"1.0.3","keywords":["check","type","typesafe","validation"],"author":{"name":"Daniel Vigaru"},"license":"ISC","_id":"@danielvigaru/check-type-of@1.0.3","maintainers":[{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"}],"homepage":"https://github.com/danielvigaru/check-type-of#readme","bugs":{"url":"https://github.com/danielvigaru/check-type-of/issues"},"dist":{"shasum":"bed559bb31abaaa7c50d05c2d6902976dbbcd68a","tarball":"https://registry.npmjs.org/@danielvigaru/check-type-of/-/check-type-of-1.0.3.tgz","fileCount":6,"integrity":"sha512-FPamhVee0NBQqiW0FuyzO6a4C40vEsjq29o/EuWpHoyCYdW/NRjm5Gwa5b0r5UmRYEPBiCYk2n58dRXX5sVUFA==","signatures":[{"sig":"MEYCIQCK6hPv8EyJ8+UMOngikZ5JYGBnk82JH1exB968SL0N4AIhANS1rIEq/5FQ5RHRI3nX24CC6WpWzehoHRvrDd7awdqh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13950},"main":"lib/index.js","type":"module","types":"./lib/index.d.ts","module":"lib/index.js","exports":{"import":"./lib/index.js"},"gitHead":"5df891a4c8ac19b088fdebeedddaef1348dc4a84","scripts":{"build":"tsc","prebuild":"del-cli lib/*","test:once":"jest","test:watch":"jest --watchAll","prepublishOnly":"npm run test:once && npm run build"},"_npmUser":{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"},"repository":{"url":"git+https://github.com/danielvigaru/check-type-of.git","type":"git"},"_npmVersion":"10.8.2","description":"[![CI](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml/badge.svg)](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml) [![npm](https://img.shields.io/badge/npm-FFF?style=flat&logo=npm&logoColor=fff&colo","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","del-cli":"^5.1.0","ts-jest":"^29.2.5","typescript":"^5.6.3","@types/jest":"^29.5.13","@jest/globals":"^29.7.0","@types/is-number":"^7.0.5"},"_npmOperationalInternal":{"tmp":"tmp/check-type-of_1.0.3_1729062309001_0.4040402596932975","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@danielvigaru/check-type-of","version":"1.0.4","keywords":["check","type","typesafe","validation"],"author":{"name":"Daniel Vigaru"},"license":"ISC","_id":"@danielvigaru/check-type-of@1.0.4","maintainers":[{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"}],"homepage":"https://github.com/danielvigaru/check-type-of#readme","bugs":{"url":"https://github.com/danielvigaru/check-type-of/issues"},"dist":{"shasum":"7dbe93453923bffaa6b0702baab8aa91613e612a","tarball":"https://registry.npmjs.org/@danielvigaru/check-type-of/-/check-type-of-1.0.4.tgz","fileCount":7,"integrity":"sha512-0jhSs5q2jFpPxkNN/pZNIOMrf9oFMqjs57ofYAx1U7hY2g8WD3+F3GpoOctvIwAYhaWZpXoPdNYQbifDS3I26w==","signatures":[{"sig":"MEQCIFIxDBhW4pgEvEJ5ygEZUIeZtHPnIK32FMxucmxNsXauAiBilQPN/Tw9dVs0LIUlY9U8PPRgxT6ax3ssGahUtsOvWw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19094},"main":"lib/index.cjs","type":"module","types":"./lib/index.d.ts","module":"lib/index.mjs","gitHead":"aea460789b379404ffa07a3b008563f2320799b4","scripts":{"build":"rollup -c","prebuild":"del-cli lib/*","test:once":"jest","test:watch":"jest --watchAll","prepublishOnly":"npm run test:once && npm run build"},"_npmUser":{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"},"repository":{"url":"git+https://github.com/danielvigaru/check-type-of.git","type":"git"},"_npmVersion":"10.8.2","description":"[![CI](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml/badge.svg)](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml) [![npm](https://img.shields.io/badge/npm-FFF?style=flat&logo=npm&logoColor=fff&colo","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.8.1","rollup":"^4.28.1","del-cli":"^5.1.0","ts-jest":"^29.2.5","typescript":"^5.6.3","@types/jest":"^29.5.13","@jest/globals":"^29.7.0","@rollup/plugin-typescript":"^12.1.2"},"_npmOperationalInternal":{"tmp":"tmp/check-type-of_1.0.4_1734551456330_0.5621428551699563","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@danielvigaru/check-type-of","version":"1.0.5","keywords":["check","type","typesafe","validation"],"author":{"name":"Daniel Vigaru"},"license":"ISC","_id":"@danielvigaru/check-type-of@1.0.5","maintainers":[{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"}],"homepage":"https://github.com/danielvigaru/check-type-of#readme","bugs":{"url":"https://github.com/danielvigaru/check-type-of/issues"},"dist":{"shasum":"fb6274524fd4bf1e5c81c2d084768e460eba4c8d","tarball":"https://registry.npmjs.org/@danielvigaru/check-type-of/-/check-type-of-1.0.5.tgz","fileCount":7,"integrity":"sha512-YLRP6VGsfoytWlfd3kGoRWa53limLpT+5kcl+6V+fr9yyObJavXLHcQ7leY8BH5xEXdxED0MBJxHX+3unaJpLA==","signatures":[{"sig":"MEQCIF5pthf6td+bzX3au9eKvlYIY8skiW2OwXSxHB8rD+evAiAlOrmJlhdNgqJ6XCp7PV+Sd8cvJltULq4b96YD30JCaQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14099},"main":"lib/index.umd.js","type":"module","module":"lib/index.mjs","gitHead":"80004624faa24b63b399a07d8d2480f224687f8a","scripts":{"build":"rollup -c","prebuild":"del-cli lib/*","test:once":"jest","test:watch":"jest --watchAll","prepublishOnly":"npm run test:once && npm run build"},"_npmUser":{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"},"repository":{"url":"git+https://github.com/danielvigaru/check-type-of.git","type":"git"},"_npmVersion":"10.8.2","description":"[![CI](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml/badge.svg)](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml) [![npm](https://img.shields.io/badge/npm-FFF?style=flat&logo=npm&logoColor=fff&colo","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.8.1","rollup":"^4.28.1","del-cli":"^5.1.0","ts-jest":"^29.2.5","typescript":"^5.6.3","@types/jest":"^29.5.13","@jest/globals":"^29.7.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.2"},"_npmOperationalInternal":{"tmp":"tmp/check-type-of_1.0.5_1736618635161_0.12508814711784222","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@danielvigaru/check-type-of","version":"1.0.6","keywords":["check","type","typesafe","validation"],"author":{"name":"Daniel Vigaru"},"license":"ISC","_id":"@danielvigaru/check-type-of@1.0.6","maintainers":[{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"}],"homepage":"https://github.com/danielvigaru/check-type-of#readme","bugs":{"url":"https://github.com/danielvigaru/check-type-of/issues"},"dist":{"shasum":"c5bd026293391e68458fc7a485eae349e9637083","tarball":"https://registry.npmjs.org/@danielvigaru/check-type-of/-/check-type-of-1.0.6.tgz","fileCount":7,"integrity":"sha512-UE4GXGPIj1xzM0GdRqF7q18zxSFTh1ajrgrKeSTa0FdQKbwimBsOrdeedSuSNa39c275sgjvZkLPWlzoIwiFEw==","signatures":[{"sig":"MEUCIAjO+T63TlVSoCNGLCCnIso9r6GRwwfyhsz+54DWqIgtAiEA/8v9AvzYseRtSHHhbIjI9cwlqtZdHUq1lW+AF/QHcSg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20026},"main":"lib/index.umd.js","type":"module","module":"lib/index.mjs","gitHead":"2b2883ffcb34404da47add9adf96f1ce0e6824ab","scripts":{"build":"rollup -c","prebuild":"del-cli lib/*","test:once":"jest","test:watch":"jest --watchAll","prepublishOnly":"npm run test:once && npm run build"},"_npmUser":{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"},"repository":{"url":"git+https://github.com/danielvigaru/check-type-of.git","type":"git"},"_npmVersion":"10.8.2","description":"[![CI](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml/badge.svg)](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml) [![npm](https://img.shields.io/badge/npm-FFF?style=flat&logo=npm&logoColor=fff&colo","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.8.1","rollup":"^4.34.3","del-cli":"^6.0.0","ts-jest":"^29.2.5","typescript":"^5.7.3","@types/jest":"^29.5.14","@jest/globals":"^29.7.0","@rollup/plugin-typescript":"^12.1.2"},"_npmOperationalInternal":{"tmp":"tmp/check-type-of_1.0.6_1738784496636_0.8628825873221018","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@danielvigaru/check-type-of","version":"1.0.7","type":"module","sideEffects":false,"main":"lib/index.umd.js","module":"lib/index.mjs","scripts":{"prepublishOnly":"npm run test:once && npm run build","prebuild":"del-cli lib/*","build":"rollup -c","test:once":"jest","test:watch":"jest --watchAll"},"keywords":["check","type","typesafe","validation"],"repository":{"type":"git","url":"git+https://github.com/danielvigaru/check-type-of.git"},"author":{"name":"Daniel Vigaru"},"license":"ISC","description":"[![CI](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml/badge.svg)](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml) [![npm](https://img.shields.io/badge/npm-FFF?style=flat&logo=npm&logoColor=fff&colo","devDependencies":{"@jest/globals":"^29.7.0","@rollup/plugin-typescript":"^12.1.4","@types/jest":"^29.5.14","del-cli":"^6.0.0","jest":"^29.7.0","rollup":"^4.50.1","ts-jest":"^29.4.1","tslib":"^2.8.1","typescript":"^5.9.2"},"packageManager":"pnpm@10.15.1","_id":"@danielvigaru/check-type-of@1.0.7","gitHead":"24bc0999eacb20cfb6be1154ae72a1feb3c624e3","bugs":{"url":"https://github.com/danielvigaru/check-type-of/issues"},"homepage":"https://github.com/danielvigaru/check-type-of#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-es0eMsWXtmhKF3TwD2bD97QjFkna5UCObfn4sOMF10yW1+pHKMexkLy7ptuBSBiruES0/PEzB0vEcyJ5Tg4c7A==","shasum":"41e5ca193b4719bc31d5255182ea0da9a053aadb","tarball":"https://registry.npmjs.org/@danielvigaru/check-type-of/-/check-type-of-1.0.7.tgz","fileCount":7,"unpackedSize":20032,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD0azbf4M72yj/HkwWD39a+cVibvK1d2zOtRL8ePRnTzwIgUh8ARR6p4h4dkvx8RBq6qX+2YRwEWc0EEKhn/d9F7Ng="}]},"_npmUser":{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"},"directories":{},"maintainers":[{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/check-type-of_1.0.7_1757357213122_0.8454708704725153"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-13T17:51:48.537Z","modified":"2025-09-08T18:46:53.776Z","1.0.0":"2024-10-12T15:15:03.144Z","0.0.0":"2024-10-13T17:51:48.840Z","0.0.1":"2024-10-13T17:54:05.683Z","0.0.2":"2024-10-13T18:05:52.490Z","1.0.1":"2024-10-13T19:45:59.867Z","1.0.2":"2024-10-14T17:36:46.603Z","1.0.3":"2024-10-16T07:05:09.175Z","1.0.4":"2024-12-18T19:50:56.512Z","1.0.5":"2025-01-11T18:03:55.360Z","1.0.6":"2025-02-05T19:41:36.824Z","1.0.7":"2025-09-08T18:46:53.300Z"},"bugs":{"url":"https://github.com/danielvigaru/check-type-of/issues"},"author":{"name":"Daniel Vigaru"},"license":"ISC","homepage":"https://github.com/danielvigaru/check-type-of#readme","keywords":["check","type","typesafe","validation"],"repository":{"type":"git","url":"git+https://github.com/danielvigaru/check-type-of.git"},"description":"[![CI](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml/badge.svg)](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml) [![npm](https://img.shields.io/badge/npm-FFF?style=flat&logo=npm&logoColor=fff&colo","maintainers":[{"name":"danielvigaru","email":"daniel.vigaru@gmail.com"}],"readme":"# CheckType.of()\n\n[![CI](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml/badge.svg)](https://github.com/danielvigaru/check-type-of/actions/workflows/node.js.yml)\n[![npm](https://img.shields.io/badge/npm-FFF?style=flat&logo=npm&logoColor=fff&color=CB3837)](https://www.npmjs.com/package/@danielvigaru/check-type-of)\n[![Ko-fi](https://img.shields.io/badge/Ko--fi-FF5E5B?style=flat&logo=ko-fi&logoColor=white&color=D34F4C)](https://ko-fi.com/Y8Y1DZBZU)\n\n## Why did I create this?\n\nBecause in JavaScript, (almost) everything is an object:\n\n```javascript\ntypeof {}; // -> 'object' - totally agree\ntypeof []; // -> 'object' - are you sure?\ntypeof new Date(); // -> 'object' - ok, kind of makes sense because class instances are objects in JS, but it's useless\ntypeof null; // -> 'object' - what?\ntypeof undefined; // -> 'undefined' - finally something normal\ntypeof NaN; // -> 'number' - how? it's in the name\n```\n\nAnd to add more complex type checking:\n\n```javascript\n// ES6 class\nclass A {}\ntypeof A; // -> 'function'\nCheckType.of(A).type; // -> 'class'\n\n// ES5 class\nfunction B() {}\nB.prototype.someMethod = function () {};\ntypeof B; // -> 'function'\nCheckType.of(B).type; // -> 'class'\n\n// Don't worry, these still work as expected:\nCheckType.of(() => {}).type; // -> 'function'\nCheckType.of(function () {}).type; // -> 'function'\n```\n\n## Usage / Examples\n\nImport the `CheckType` class without instantiating it; just use `CheckType.of(item)` to access all the methods.\n\n```javascript\nimport { CheckType, TItemType } from '@danielvigaru/check-type-of';\n```\n\n### Using the `type` property\n\nGet the type of an item by accessing the `type: TItemType` property:\n\n```javascript\ntypeof []; // -> 'object'\nCheckType.of([]).type; // -> 'array'\n```\n\nSee how it says `'array'` and not `'object'`? Yeah.\n\n### Using the `is...` and `isNot...` methods\n\nThese methods take a callback as a parameter and execute it if the item being checked matches the specified type. You can chain multiple `is...` methods.\n\n1. Use `is...` and `isNot...` methods like you would use if/else statements:\n\n```javascript\nCheckType.of(new Date())\n    .isDate(() => console.log(\"Looks like we've got ourselves a date!\"))\n    .isNotDate(() => console.log('This is anything but a date'));\n\n// Output: \"Looks like we've got ourselves a date!\"\n```\n\nNote: You can't chain multiple `isNot...` methods because it wouldn't make sense; it would execute all/most of them each time.\n\n2. Chain multiple methods like you would in a switch statement:\n\n```javascript\nCheckType.of(someUnknownVariable)\n    .isNumber(() => console.log(\"It's a number\"))\n    .isDate(() => console.log(\"Looks like we've got ourselves a date!\"))\n    .isArray(() => console.log(\"['A', 'r', 'r', 'a', 'y']\"));\n```\n\n## Method Reference\n\nAll of these methods have an `isNot...` counterpart.\n\n| **Method**    | **Executes the callback if the item is:**    | `.type` property |\n| ------------- | -------------------------------------------- | ---------------- |\n| `isArray`     | `[]`, instanceof `Array`                     | `'array'`        |\n| `isBoolean`   | `true`, `false`                              | `'boolean'`      |\n| `isClass`     | ES5 class, ES6 class                         | `'class'`        |\n| `isDate`      | instanceof `Date`                            | `'date'`         |\n| `isFunction`  | a function that isn't an ES5 class           | `'function'`     |\n| `isMap`       | instanceof `Map`                             | `'map'`          |\n| `isNull`      | `null`                                       | `'null'`         |\n| `isNullish`\\* | `null`, `undefined`                          | -                |\n| `isNumber`    | a number: decimal, octal, hex, binary, float | `'number'`       |\n| `isObject`    | `{}`, instanceof `Object`                    | `'object'`       |\n| `isString`    | a string                                     | `'string'`       |\n| `isUndefined` | `undefined`                                  | `'undefined'`    |\n\n\\* Utility method that does not assign a value to the `.type` property.\n","readmeFilename":"README.md"}