{"_id":"ts-null-or-undefined","_rev":"6-8722a8ef135e361cd312bcbd45fe73d1","name":"ts-null-or-undefined","description":"Best type safe way to check null or undefined in typescript","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"ts-null-or-undefined","version":"0.0.1","description":"Best type safe way to check null or undefined in typescript","main":"index.js","scripts":{"build":"rm -rf dist && tsc","release":"npm run build && npm publish","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/naqvitalha/ts-null-or-undefined.git"},"author":{"name":"naqvitalha","email":"naqvitalha@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/naqvitalha/ts-null-or-undefined/issues"},"homepage":"https://github.com/naqvitalha/ts-null-or-undefined#readme","gitHead":"ba884ce230c313df2524975385961e37cbd66f01","_id":"ts-null-or-undefined@0.0.1","_shasum":"a60ba34c71cf9df76f3bc28379724c50e4683178","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"naqvitalha","email":"naqvitalha@gmail.com"},"dist":{"shasum":"a60ba34c71cf9df76f3bc28379724c50e4683178","tarball":"https://registry.npmjs.org/ts-null-or-undefined/-/ts-null-or-undefined-0.0.1.tgz","integrity":"sha512-vljkxFc9F6anNHIXlpLcWNmQGkgotzFU4/LtkbMhoQ4OxRnqsc4tOX+wUgzo3B3TniONhbgjkHrxy+MG3dcvxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtCck2x4xk3ElgIZY2Xgf6kOzml2K/aNQdaj94tgsbOAIgD+pve7NsW/XFV49mqUZ07TTc9byYcrpwsIk0VEeIfCc="}]},"maintainers":[{"name":"naqvitalha","email":"naqvitalha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-null-or-undefined-0.0.1.tgz_1510342403982_0.715832470683381"}},"0.0.2":{"name":"ts-null-or-undefined","version":"0.0.2","description":"Best type safe way to check null or undefined in typescript","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rm -rf dist && tsc","release":"npm run build && npm publish","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/naqvitalha/ts-null-or-undefined.git"},"author":{"name":"naqvitalha","email":"naqvitalha@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/naqvitalha/ts-null-or-undefined/issues"},"homepage":"https://github.com/naqvitalha/ts-null-or-undefined#readme","gitHead":"b0af37d29571c837df293f817d33d718356902ff","_id":"ts-null-or-undefined@0.0.2","_shasum":"1a20840ece6a9d029f92fe7e84742ed7d567fc04","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"naqvitalha","email":"naqvitalha@gmail.com"},"dist":{"shasum":"1a20840ece6a9d029f92fe7e84742ed7d567fc04","tarball":"https://registry.npmjs.org/ts-null-or-undefined/-/ts-null-or-undefined-0.0.2.tgz","integrity":"sha512-aaPTIf/0Xm1HsWc/8V0LfdoJ0SG4cWvdXQiiCtr/ATrf4UpKsfaqB8pfmVtAggusq/eFFDi4tk++mfAXkOHD/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJF6vdoiV1vCFtL2R93QlzCUpFBg1T0+F/rlcvmwJ7XwIgf71/vaLeyixG967/yXkcck3w/k1cBZHiLo5EtQaUxUI="}]},"maintainers":[{"name":"naqvitalha","email":"naqvitalha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-null-or-undefined-0.0.2.tgz_1510342857141_0.3459309651516378"}},"0.0.3":{"name":"ts-null-or-undefined","version":"0.0.3","description":"Best type safe way to check null or undefined in typescript","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rm -rf dist && tsc","release":"npm run build && npm publish","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/naqvitalha/ts-null-or-undefined.git"},"author":{"name":"naqvitalha","email":"naqvitalha@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/naqvitalha/ts-null-or-undefined/issues"},"homepage":"https://github.com/naqvitalha/ts-null-or-undefined#readme","gitHead":"b04f85670ff0919971d8d1a45e107769cb16dabe","_id":"ts-null-or-undefined@0.0.3","_shasum":"3407e8b0d60b4e3c40edf1973ef2b7919e4bf061","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"naqvitalha","email":"naqvitalha@gmail.com"},"dist":{"shasum":"3407e8b0d60b4e3c40edf1973ef2b7919e4bf061","tarball":"https://registry.npmjs.org/ts-null-or-undefined/-/ts-null-or-undefined-0.0.3.tgz","integrity":"sha512-PMP/aBebGxd5947AOIyMUc1vxHcUWB5cVDE3xzwvzPYOHZFTM/WIOMJO987Hrly8LcK2Yzt66WNDd4MyyyzC+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUsVhPEbYWVP31LnLaESnFgPnNF5kmaIt1Hk2k2pzpYAIgBluh/QOdBnUWf8hYQYF1JuJmIPUsaiUMOC8Z3MpUnbQ="}]},"maintainers":[{"name":"naqvitalha","email":"naqvitalha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-null-or-undefined-0.0.3.tgz_1510681111354_0.7557121675927192"}},"0.0.4":{"name":"ts-null-or-undefined","version":"0.0.4","description":"Best type safe way to check null or undefined in typescript","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rm -rf dist && tsc","release":"npm run build && npm publish","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/naqvitalha/ts-null-or-undefined.git"},"author":{"name":"naqvitalha","email":"naqvitalha@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/naqvitalha/ts-null-or-undefined/issues"},"homepage":"https://github.com/naqvitalha/ts-null-or-undefined#readme","gitHead":"1a8a89dc2a7551b2f8c3d1b40d6d7ea40a975d95","_id":"ts-null-or-undefined@0.0.4","_shasum":"dfc8209e49cc597c8ac8f38c0e715304ef570774","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"naqvitalha","email":"naqvitalha@gmail.com"},"dist":{"shasum":"dfc8209e49cc597c8ac8f38c0e715304ef570774","tarball":"https://registry.npmjs.org/ts-null-or-undefined/-/ts-null-or-undefined-0.0.4.tgz","integrity":"sha512-ieoiRa+DXmrqXimMtd5aL3PvRZQpM1Ev/DCDrENu5mJAqzQAnylgCCYCUHk/90yAkRxT8ptbmzjq109LwGWOew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHzSz3xmQW98tibRDN7fHeM/7/rsPKSPHLVUEnCZcaGWAiEApFxhVHQJiEYfFKgWB0GgR9Kwe1HPSloDDco94Z2l7lw="}]},"maintainers":[{"name":"naqvitalha","email":"naqvitalha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-null-or-undefined-0.0.4.tgz_1511024327358_0.4683673088438809"}},"0.0.5":{"name":"ts-null-or-undefined","version":"0.0.5","description":"Best type safe way to check null or undefined in typescript","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rm -rf dist && tsc","release":"npm run build && npm publish","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/naqvitalha/ts-null-or-undefined.git"},"author":{"name":"naqvitalha","email":"naqvitalha@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/naqvitalha/ts-null-or-undefined/issues"},"homepage":"https://github.com/naqvitalha/ts-null-or-undefined#readme","gitHead":"1a8a89dc2a7551b2f8c3d1b40d6d7ea40a975d95","_id":"ts-null-or-undefined@0.0.5","_shasum":"659cbdd3e3fbe8d48fc856a97834cf86a3bb77e5","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"naqvitalha","email":"naqvitalha@gmail.com"},"dist":{"shasum":"659cbdd3e3fbe8d48fc856a97834cf86a3bb77e5","tarball":"https://registry.npmjs.org/ts-null-or-undefined/-/ts-null-or-undefined-0.0.5.tgz","integrity":"sha512-xKE7dvnRjrYmuYqVdEcuHUSIiF4w2eoF8jlhUb2TFPy/TtJu+iE4K8aDfraVWTUzijksLCl593kFZmAGOQzrDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHWISmSC8BYLCNeTVUrM2buTHrgOkNnSzM8donUHJl9EAiALeKuHz2iPd1nWWWy2N4DO6zeteiUCBnVoqOiC2CkU7A=="}]},"maintainers":[{"name":"naqvitalha","email":"naqvitalha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-null-or-undefined-0.0.5.tgz_1511029459571_0.8278345484286547"}}},"readme":"# ts-null-or-undefined\nBest way to check for null or undefined in typescript using a type guard.\nCan strip out null or undefine or complex types like T | null etc.\n\nTo use: \n```js\nimport Type from \"ts-null-or-undefined\";\n\nlet a: number | null = 0;\n\nconsole.log(a*4); //Error: a might be null\n\nif(!Type.isNullOrUndefined(a)){\n    console.log(a*4); //Works\n}\n```\n","maintainers":[{"name":"naqvitalha","email":"naqvitalha@gmail.com"}],"time":{"modified":"2022-06-27T22:14:55.470Z","created":"2017-11-10T19:33:24.146Z","0.0.1":"2017-11-10T19:33:24.146Z","0.0.2":"2017-11-10T19:40:58.011Z","0.0.3":"2017-11-14T17:38:31.426Z","0.0.4":"2017-11-18T16:58:47.460Z","0.0.5":"2017-11-18T18:24:19.643Z"},"homepage":"https://github.com/naqvitalha/ts-null-or-undefined#readme","repository":{"type":"git","url":"git+https://github.com/naqvitalha/ts-null-or-undefined.git"},"author":{"name":"naqvitalha","email":"naqvitalha@gmail.com"},"bugs":{"url":"https://github.com/naqvitalha/ts-null-or-undefined/issues"},"license":"ISC","readmeFilename":"README.md"}