{"_id":"@bemoje/is-args-defined","_rev":"4-1def62a92c79d19a1bf39dc6d941a0b1","name":"@bemoje/is-args-defined","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@bemoje/is-args-defined","version":"1.0.0","keywords":["returns","passed","arguments","defined","undefined","isargsdefined","args","pass","boolean"],"author":{"url":"https://github.io/bemoje/","name":"Benjamin M. Jensen","email":"bemoje@gmail.com"},"license":"MIT","_id":"@bemoje/is-args-defined@1.0.0","maintainers":[{"name":"bemoje","email":"bemoje@gmail.com"}],"homepage":"https://github.com/bemoje/bemoje-is-args-defined#readme","bugs":{"url":"https://github.com/bemoje/bemoje-is-args-defined/issues","email":"bemoje@gmail.com"},"dist":{"shasum":"f9e26ab23a23b35e352444b230ca984000c372d5","tarball":"https://registry.npmjs.org/@bemoje/is-args-defined/-/is-args-defined-1.0.0.tgz","fileCount":5,"integrity":"sha512-NRT4VIyJlCVEKKfhywp7rLIdmzUsml4eBqtc4ZY/m/Q7tL9w6pMn8Gl8SnCTMHmpTFs4B2+pB9PsIkLkDVUv3Q==","signatures":[{"sig":"MEUCIF8ogT7caFUT8W/hFPLXdxEupqshDCckKR78HtQ55nbjAiEAmDQmtnLlhT2Ja/+OiacuUHO5a/NflloON3HXFVGMtTQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7452,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepHIkCRA9TVsSAnZWagAAdokQAJpA5q9ryzDSmBB30MJO\n/+P8pEzwz+HizTfeY+zb86xyKhiVYRZo9RDSWorRLoUj2grHApQwyPsjIq7x\ni1dY6xQ0rdD4EucWkgLbENafJHA1cGilADs2KPJK0oWT/zL/7knVElC2r4xv\nLPK0LV28rWnfi2x9JsbkjcbgIYdgALaw7d3FnL9pS8v5tegl6AoDmzJbcbXf\nDbXBX6/5OLwBaMSgXZwnilKhloWLh3XiWJaocne1CiPX/Y0xYtI2vF1OiEFc\nHDLRdrh2syweRtoNIgYjSo6B2gH+OFFq6oezkJcfBdn4EI/rW8ncdR4jTQMx\nA2+AKyLapmbhldxUKwxdxCC3WebRfqQWO3p7n8giKI8AHqvID2gkZmwQqCOz\nelQUEnWsOgKFpqgMVOWkk8VgJ/OcUDP31+3FuoP04I+HLZmIXpIhlnIhuqhc\nY43cED5zWNkItH7wwcVpI7uX0Cnw/4fxG8Wlf/cVQRkOxZfxCk6ACu5aGiIJ\nSKB0HbYGSWhO0gcuqDd9JEryLicBg1h9mSC5gpUMuszlVEXv6NPbBx4K/WNW\ntPankC2qZPikH1skw1XCuvDQWXwLWlYEBHOldQtcBVxsigLqMLpR0tqxvaRv\nSO67pgS6oA7inJQFIus0Ta4Xrx4annlms4aMvwwKLok19aB0VIzzQ4CzohbS\n77aO\r\n=pj04\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/is-args-defined.umd.js","github":{"user":"bemoje"},"module":"dist/is-args-defined.esm.js","browser":"dist/is-args-defined.umd.js","scripts":{"docs":"documentation build src/** -f md -o docs/api.md && documentation build src/** -f html -o docs","repo":"node -r esm scripts/repo.js","test":"jest","bench":"node -r esm benchmark/is-args-defined.benchmark.js","build":"npm run test && npm run bench && npm run rollup && npm run docs && npm run description && npm run keywords && npm run readme","clean":"rimraf","major":"npm run repo bumpVersionMajor","minor":"npm run repo bumpVersionMinor","patch":"npm run repo bumpVersionPatch","readme":"npm run repo writeReadme","rename":"npm run repo rename","rollup":"rollup -c","example":"node -r esm examples/is-args-defined.example.js","publish":"npm run repo npmPublish","keywords":"npm run repo keywords","git-commit":"npm run repo gitCommit","git-create":"npm run repo gitCreate","git-delete":"rimraf .git && bash scripts/github-delete.sh bemoje bemoje-is-args-defined","description":"npm run repo description"},"_npmUser":{"name":"bemoje","email":"bemoje@gmail.com"},"repository":{"url":"git+https://github.com/bemoje/bemoje-is-args-defined.git","type":"git"},"_npmVersion":"6.12.1","description":"Returns whether or not the passed arguments are defined - ie. not undefined","directories":{},"_nodeVersion":"12.13.0","dependencies":{"@bemoje/is-undefined":"^3.0.3"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","jest":"^24.9.0","path":"^0.12.7","rimraf":"^3.0.2","rollup":"^1.32.1","fs-extra":"^9.0.0","hirestime":"^6.0.1","walk-sync":"^2.1.0","babel-core":"^6.26.3","babel-jest":"^23.6.0","documentation":"^12.3.0","babel-preset-env":"^1.7.0","keyword-extractor":"0.0.18","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/is-args-defined_1.0.0_1587835428519_0.43000650647146554","host":"s3://npm-registry-packages"},"deprecated":"Package is not maintained."},"1.0.1":{"name":"@bemoje/is-args-defined","version":"1.0.1","keywords":["returns","passed","arguments","defined","undefined","isargsdefined","args","pass","boolean"],"author":{"url":"https://github.io/bemoje/","name":"Benjamin M. Jensen","email":"bemoje@gmail.com"},"license":"MIT","_id":"@bemoje/is-args-defined@1.0.1","maintainers":[{"name":"bemoje","email":"bemoje@gmail.com"}],"homepage":"https://github.com/bemoje/bemoje-is-args-defined#readme","bugs":{"url":"https://github.com/bemoje/bemoje-is-args-defined/issues","email":"bemoje@gmail.com"},"dist":{"shasum":"5bb05ca6f4f03da17f0fac3452ad6ef2ccc78ad9","tarball":"https://registry.npmjs.org/@bemoje/is-args-defined/-/is-args-defined-1.0.1.tgz","fileCount":5,"integrity":"sha512-r+sUwS1GMmVBaCDzH2eBwUPWoFwPEkaYFHU7gBGaHE5iMlPlYmJFSE7iFcoTy941wVs+hc08QG+PBXh4qlccyQ==","signatures":[{"sig":"MEQCICOUxzxhH8Xbz0Xdjl2dShD+4thAp3GUhD2S95OIH5n2AiAZTacS+G2IFDV9DkpmcjO4LeK6g0RhFWJ+MzwIPybzmg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7452,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqsJ5CRA9TVsSAnZWagAAFiYP/Aul/G3sPWjcpFMPxWMm\nRlWNZBsqaQNbMLTghjJLOgm+6XskSfMwGU+3nj1usiY/EFWfkXSKSg+mXp7D\nskcfJHTuQ7LpEH3wBBYK/B8UCzPR5MrZkdseOQHWkJBpC2Ltmypgw/xvZeij\n78KtaGRqPZrXtOYYxDxnS4Q62QP/hp94vU7yOQDKWQPhYY+TTP+cJ5xDxERl\naqUD6v+SYkHFt012p6qMoB/lU1d6u71XLVxpSYv9dT0Cu+Z/Dy4ulbpst2Ec\nWdNqNJ4+rkj2C9a6TAUb0RfH4IeTlaVcu5BfgtIzwcbSq8BeuAMVSolT5Rdf\n8LDn8+oTfx+CSo0aL8+vedzta4ppo5K4Umf9lgG3R425YuQzcZE7aHjsCKyW\nneLWptuhfHVBlB5DU7+iUP31qesXoEIPymAIgRDPGK2r7lnsJ8lhfuiTHQ5L\no+0pRGnIPk448sXcNYpqrk8YId63ZKwzSmkP08h/8eOwWAbBaNGerKqTwjdO\nytrOKnoPTSUI+oabGNNp5dEzN/Dq1DL2699cLYmE5j//8KSt+lPgE4csqS91\nLR1BR4mSMnqqmpjQIHz85p5HUuWhGWj9G7hNSmYCngWfT3Ag9aVSld36XSiG\nnaUNnFU9gq4HN980j9tauHF1ZvO3BrTYGegs4GTt63MSjPvGf5qrn0I/3ZR9\nNP/1\r\n=yfYS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/is-args-defined.umd.js","github":{"user":"bemoje"},"module":"dist/is-args-defined.esm.js","browser":"dist/is-args-defined.umd.js","gitHead":"1aa360246331202c78f3ed2de1e8403d003bd01d","scripts":{"docs":"documentation build src/** -f md -o docs/api.md && documentation build src/** -f html -o docs","repo":"node -r esm scripts/repo.js","test":"jest","bench":"node -r esm benchmark/is-args-defined.benchmark.js","build":"npm run test && npm run bench && npm run rollup && npm run docs && npm run description && npm run keywords && npm run readme","clean":"rimraf","major":"npm run repo bumpVersionMajor","minor":"npm run repo bumpVersionMinor","patch":"npm run repo bumpVersionPatch","readme":"npm run repo writeReadme","rename":"npm run repo rename","rollup":"rollup -c","example":"node -r esm examples/is-args-defined.example.js","publish":"npm run repo npmPublish","keywords":"npm run repo keywords","git-commit":"npm run repo gitCommit","git-create":"npm run repo gitCreate","git-delete":"rimraf .git && bash scripts/github-delete.sh bemoje bemoje-is-args-defined","description":"npm run repo description"},"_npmUser":{"name":"bemoje","email":"bemoje@gmail.com"},"repository":{"url":"git+https://github.com/bemoje/bemoje-is-args-defined.git","type":"git"},"_npmVersion":"6.12.1","description":"Returns whether or not the passed arguments are defined - ie. not undefined","directories":{},"_nodeVersion":"12.13.0","dependencies":{"@bemoje/is-undefined":"^3.0.3"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","jest":"^24.9.0","path":"^0.12.7","rimraf":"^3.0.2","rollup":"^1.32.1","fs-extra":"^9.0.0","hirestime":"^6.0.1","walk-sync":"^2.1.0","babel-core":"^6.26.3","babel-jest":"^23.6.0","documentation":"^12.3.0","babel-preset-env":"^1.7.0","keyword-extractor":"0.0.18","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/is-args-defined_1.0.1_1588249208727_0.5463643926568762","host":"s3://npm-registry-packages"},"deprecated":"Package is not maintained."}},"time":{"created":"2020-04-25T17:23:48.470Z","modified":"2025-06-17T23:56:27.569Z","1.0.0":"2020-04-25T17:23:48.603Z","1.0.1":"2020-04-30T12:20:08.872Z"},"bugs":{"url":"https://github.com/bemoje/bemoje-is-args-defined/issues","email":"bemoje@gmail.com"},"author":{"url":"https://github.io/bemoje/","name":"Benjamin M. Jensen","email":"bemoje@gmail.com"},"license":"MIT","homepage":"https://github.com/bemoje/bemoje-is-args-defined#readme","keywords":["returns","passed","arguments","defined","undefined","isargsdefined","args","pass","boolean"],"repository":{"url":"git+https://github.com/bemoje/bemoje-is-args-defined.git","type":"git"},"description":"Returns whether or not the passed arguments are defined - ie. not undefined","maintainers":[{"name":"bemoje","email":"bemoje@gmail.com"}],"readme":"# @bemoje/is-args-defined\n\nReturns whether or not the passed arguments are defined - ie. not undefined\n\n#### Version\n\n<span><a href=\"https://npmjs.org/@bemoje/is-args-defined\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/@bemoje/is-args-defined\" alt=\"NPM version\" /></a></span>\n\n#### Travis CI\n\n<span><a href=\"https://npmjs.org/@bemoje/is-args-defined\" title=\"View this project on NPM\"><img src=\"https://travis-ci.org/bemoje/bemoje-is-args-defined.svg?branch=master\" alt=\"dependencies\" /></a></span>\n\n#### Dependencies\n\n<span><a href=\"https://npmjs.org/@bemoje/is-args-defined\" title=\"View this project on NPM\"><img src=\"https://david-dm.org/bemoje/bemoje-is-args-defined.svg\" alt=\"dependencies\" /></a></span>\n\n#### Stats\n\n<span><a href=\"https://npmjs.org/@bemoje/is-args-defined\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dt/@bemoje/is-args-defined\" alt=\"NPM downloads\" /></a></span>\n<span><a href=\"https://github.com/bemoje/bemoje-is-args-defined/fork\" title=\"Fork this project\"><img src=\"https://img.shields.io/github/forks/bemoje/bemoje-is-args-defined\" alt=\"Forks\" /></a></span>\n\n#### Donate\n\n<span><a href=\"https://www.buymeacoffee.com/bemoje\" title=\"Donate to this project using Buy Me A Beer\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg?label=Buy me a beer!\" alt=\"Buy Me A Beer donate button\" /></a></span>\n<span><a href=\"https://paypal.me/forstaaloen\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg?label=PayPal\" alt=\"PayPal donate button\" /></a></span>\n\n## Installation\n\n```sh\nnpm install @bemoje/is-args-defined\nnpm install --save @bemoje/is-args-defined\nnpm install --save-dev @bemoje/is-args-defined\n```\n\n## Usage\n\n```javascript\nimport isArgsDefined from '@bemoje/is-args-defined'\n\n// require arguments for multiple parameters\nfunction add(a, b) {\n\tif (!isArgsDefined(a, b)) {\n\t\tthrow new Error('lol')\n\t}\n\n\treturn a + b\n}\n\n// require arguments for single parameter\nfunction add_safe(a, b) {\n\tif (!isArgsDefined(a)) {\n\t\tthrow new Error('lol')\n\t}\n\n\tif (!isArgsDefined(b)) {\n\t\treturn a\n\t}\n\n\treturn a + b\n}\n\n```\n\n## Benchmark\n84800 nanoseconds\n## Tests\nUses *Jest* to test module functionality. Run tests to get coverage details.\n\n```bash\nnpm run test\n```\n\n## API\n### isArgsDefined\n\n##### Returns\nwhether or not the passed arguments are defined - ie. not undefined\n\n##### Returns\n**[boolean][2]** boolean\n\n[1]: #isargsdefined\n\n[2]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean","readmeFilename":"readme.md"}