{"_id":"@aaronburt/typeguard-js","name":"@aaronburt/typeguard-js","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aaronburt/typeguard-js","version":"1.0.0","description":"A simple library for checking data types in JavaScript","main":"./dist/app.js","type":"module","scripts":{"prod":"uglifyjs ./dist/_app.js -o ./dist/app.js"},"keywords":["typechecking","data types","validation"],"author":{"name":"aaronburt"},"license":"MIT","devDependencies":{"uglify-js":"^3.17.4"},"gitHead":"bafa3a0a5e469484892fbade7c9ce5b60b6489dd","_id":"@aaronburt/typeguard-js@1.0.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-MII0drRXB6Q4AfJBPRe4LNAD09VBtCzw72sMXcWYmou+125Rj98oAvMZsohRAGeshe6cxUfH03EDrf4Y83Nghg==","shasum":"2e819b5a5e160ebbbceaa35b2204a35e781cf80b","tarball":"https://registry.npmjs.org/@aaronburt/typeguard-js/-/typeguard-js-1.0.0.tgz","fileCount":7,"unpackedSize":11867,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKnZcHqgZKzKiYRmeFQezXdLi1keTtJkecKQxDgkw0+QIhAMK8lQcqvapdh8G/s+z+Sxfd3Y53cR50ib8w7qMMhha2"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQnW5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqp5A//ZH3X+KdRNxgXE4GofQ1JDmIN5h84wMK1uBr0dxX8DwTjFcMK\r\n8FOas3ems9LtXCPKXjmOMF6gy+b3RHMM3sDRLvPNiLJqDheeP5Labx/AxMmo\r\nVMllurTN1wsNivlfkq2DkeDz+AFTiAnTu1tfFFzTkXENOx8Lq/KXRENAO/WU\r\n3Z+KYBFypespqBZNRYBvNO2FKDLLAufUQY3WBB+iBIUHpFSiZTzSNM+T3PK/\r\noOJG/gHpagNtHZCkka11CKkvjafEfSZso40jvGpUtOMB8vyNSsCnQVeO4ji9\r\nV7dG0sXcg+Db0qwQV5mtTMMXKd1TR40KMTCURmqXsq0zXXXmEkYG0cvfhZ6q\r\nouxkH+L5BnApKp/BPb7JroDXTwPifxM/aBNNyr3aSEoE7vds5HZw6WclFSG8\r\nuXoV8sJuIMOknBTHXv8flWCYHdfZEXqJFTz3WzYp6PY6MuJECDJC4te4vubX\r\n4p17KLzhDjaUTTkDzTsbXu89Sp4Hu7azwqup9zp0yEGlGky5Kf3oA0usxQTU\r\nukwKRSwEIjsFCgPG4ZIPTDzPBrY/JpYqlrXccXIZftZ8pWnTVj6U/bzY5Dr+\r\ncH0l3DTwbrHykOKCanjXbvozkJKu9TrLs49D7UCaviz0LkEwOl+ensQNItnh\r\naHicsYpMta6fIHiRWU/npoti2q65kV8VHW8=\r\n=CMKt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aaronburt","email":"npm@aaronburt.co.uk"},"directories":{},"maintainers":[{"name":"aaronburt","email":"npm@aaronburt.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typeguard-js_1.0.0_1682077113027_0.9433371118451461"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-21T11:38:32.974Z","1.0.0":"2023-04-21T11:38:33.167Z","modified":"2023-04-21T11:38:33.332Z"},"maintainers":[{"name":"aaronburt","email":"npm@aaronburt.co.uk"}],"description":"A simple library for checking data types in JavaScript","keywords":["typechecking","data types","validation"],"author":{"name":"aaronburt"},"license":"MIT","readme":"# Input Type Checker\r\n\r\nThis module provides a set of functions to determine the type of the given input. The following functions are available:\r\n\r\n    isNumber(): returns true if the input is a number, false otherwise.\r\n    isString(): returns true if the input is a string, false otherwise.\r\n    isBoolean(): returns true if the input is a boolean, false otherwise.\r\n    isNull(): returns true if the input is null, false otherwise.\r\n    isUndefined(): returns true if the input is undefined, false otherwise.\r\n    isSymbol(): returns true if the input is a symbol, false otherwise.\r\n    isJSONObject(): returns true if the input is a valid JSON object, false otherwise.\r\n\r\nUsage\r\n\r\nTo use this module, import it and call the desired function with the input as a parameter.\r\n\r\n```javascript\r\nimport inputTypeChecker from './inputTypeChecker.js';\r\n\r\nconst input = 'hello world';\r\nconst checker = inputTypeChecker(input);\r\n\r\nconsole.log(checker.isString()); // true\r\nconsole.log(checker.isNumber()); // false\r\nconsole.log(checker.isBoolean()); // false\r\nconsole.log(checker.isNull()); // false\r\nconsole.log(checker.isUndefined()); // false\r\nconsole.log(checker.isSymbol()); // false\r\nconsole.log(checker.isJSONObject()); // false\r\n```\r\n\r\n## Install\r\n\r\nYou need to install typescript and run ```tsc``` to generate the ./dist/ folder\r\n\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License - see the LICENSE.md file for details.","readmeFilename":"readme.md"}