{"_id":"@cynthiateeters/calculator","_rev":"1-65b5786f199819d87dc0f5524c4cf57f","name":"@cynthiateeters/calculator","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@cynthiateeters/calculator","version":"1.0.0","keywords":["calculator","cli","arithmetic","vitest","eslint","javascript"],"author":{"name":"Cynthia Teeters"},"license":"MIT","_id":"@cynthiateeters/calculator@1.0.0","maintainers":[{"name":"cynthiateeters","email":"cynthiateeters@gmail.com"}],"homepage":"https://github.com/cynthiateeters/calc-clt#readme","bugs":{"url":"https://github.com/cynthiateeters/calc-clt/issues"},"bin":{"calculator":"calculator.js"},"dist":{"shasum":"94addc0fdf741980af1b94f16cdb7f969eec215f","tarball":"https://registry.npmjs.org/@cynthiateeters/calculator/-/calculator-1.0.0.tgz","fileCount":6,"integrity":"sha512-Q+sqIWIf0l0Ru3Vr/vjsVOkAaRBgHEQ2U+VSI89NqAWQm8kIqGCcFiFV18sVPpxSnhStZD/cqGFKk5KSIK2AwA==","signatures":[{"sig":"MEUCIQCyE0YJKrr65HVfrKgrWT6zjE5Q6xhRFqdYBaaG3O+dtgIgaFmF0HJw//x/mScoEcR+EyaRrDRweughcJWFWNYzwOc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9008},"main":"calculator.js","engines":{"node":">=12.0.0"},"gitHead":"c31ae0c763db30bdf7578c66f93fa73fbc944106","scripts":{"lint":"eslint .","test":"vitest tests/calculator.test.js --globals --run --reporter verbose"},"_npmUser":{"name":"cynthiateeters","email":"cynthiateeters@gmail.com"},"repository":{"url":"git+https://github.com/cynthiateeters/calc-clt.git","type":"git"},"_npmVersion":"10.2.3","description":"A simple command-line calculator that performs basic arithmetic operations.","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.19.0","vitest":"^3.0.5","globals":"^15.14.0","@eslint/js":"^9.19.0"},"_npmOperationalInternal":{"tmp":"tmp/calculator_1.0.0_1739228950601_0.47525936732664054","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@cynthiateeters/calculator","version":"1.0.1","description":"A simple command-line calculator that performs basic arithmetic operations.","main":"calculator.js","bin":{"calculator":"calculator.js"},"scripts":{"test":"vitest tests/calculator.test.js --globals --run --reporter verbose","lint":"eslint ."},"keywords":["calculator","cli","arithmetic","vitest","eslint","javascript"],"engines":{"node":">=12.0.0"},"author":{"name":"Cynthia Teeters"},"repository":{"type":"git","url":"git+https://github.com/cynthiateeters/calc-clt.git"},"license":"MIT","devDependencies":{"@eslint/js":"^9.19.0","eslint":"^9.19.0","globals":"^15.14.0","vitest":"^3.0.5"},"_id":"@cynthiateeters/calculator@1.0.1","gitHead":"49d79343966170e35adc01a004da79225443581d","bugs":{"url":"https://github.com/cynthiateeters/calc-clt/issues"},"homepage":"https://github.com/cynthiateeters/calc-clt#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Ck3RO+UcR3xqi6EZ8UDjDXmf0gTJYYcEvAlM/kSn3RC7Xs4JWCtW+ETGOWcmFdRLvTy3DP7a8aKpImnJJMlIWw==","shasum":"d26c972455808fefd9fa500bed1a4ca00efa6a31","tarball":"https://registry.npmjs.org/@cynthiateeters/calculator/-/calculator-1.0.1.tgz","fileCount":6,"unpackedSize":9032,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAbn+WxWv6DKmBGndJANhqHcxedjZgZD+qyj8jormxXaAiBoSDokLIMuUwpv8AQF9jJpfeIPwkFgUgD1LYokmuaEcg=="}]},"_npmUser":{"name":"cynthiateeters","email":"cynthiateeters@gmail.com"},"directories":{},"maintainers":[{"name":"cynthiateeters","email":"cynthiateeters@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/calculator_1.0.1_1739234083856_0.8769787755413911"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-10T23:09:10.499Z","modified":"2025-02-11T00:34:44.310Z","1.0.0":"2025-02-10T23:09:10.827Z","1.0.1":"2025-02-11T00:34:44.129Z"},"bugs":{"url":"https://github.com/cynthiateeters/calc-clt/issues"},"author":{"name":"Cynthia Teeters"},"license":"MIT","homepage":"https://github.com/cynthiateeters/calc-clt#readme","keywords":["calculator","cli","arithmetic","vitest","eslint","javascript"],"repository":{"type":"git","url":"git+https://github.com/cynthiateeters/calc-clt.git"},"description":"A simple command-line calculator that performs basic arithmetic operations.","maintainers":[{"name":"cynthiateeters","email":"cynthiateeters@gmail.com"}],"readme":"# Calculator CLI\n\nA simple command-line calculator that performs basic arithmetic operations.\n\n## Overview\n\nThis project provides a command-line calculator that supports the following **8** operation keywords:\n\n*   Addition (`add`)\n*   Subtraction (`subtract`)\n*   Multiplication (`multiply` or `times`)\n*   Division (`divide`)\n*   Modulus (`modulus` or `remainder`)\n*   Power (`power`)\n\n## Prerequisites\n\nThis project requires [Node.js](https://nodejs.org/) to be installed on your system. We recommend using Node.js version 12 or higher.\n\n\n## Installation\n\n1.  Install as a devDependencies:\n\n    ```bash\n    npm install @cynthiateeters/calculator --save-dev\n    ```\n\n\n## Usage\n\nTo use the calculator, run the script with three arguments:\n\n```bash\nnpx calculator number operator number\n```\n\nExamples:\n\n*   Addition:\n\n    ```\n    node calculator.js 2 add 3\n    // Expected Output: result: 5\n    ```\n\n*   Division:\n\n    ```\n    node calculator.js 10 divide 2\n    // Expected Output: result: 5\n    ```\n\n*   Power:\n\n    ```\n    node calculator.js 2 power 3\n    // Expected Output: result: 8\n    ```\n\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for more details.\n","readmeFilename":"README.md"}