{"_id":"@alexx-peer/calculator","name":"@alexx-peer/calculator","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alexx-peer/calculator","version":"1.0.0","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":"Alexx Peer"},"repository":{"type":"git","url":"git+https://github.com/Alexx-Peer/calculator.git"},"license":"MIT","devDependencies":{"@eslint/js":"^9.19.0","@yourname/calculator":"github:Alexx-Peer/calculator","eslint":"^9.19.0","globals":"^15.14.0","vitest":"^3.0.5"},"_id":"@alexx-peer/calculator@1.0.0","gitHead":"5526a8177df9175e5b573cb29925ae54d3936919","bugs":{"url":"https://github.com/Alexx-Peer/calculator/issues"},"homepage":"https://github.com/Alexx-Peer/calculator#readme","_nodeVersion":"23.7.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-mnh/M6wOhNlGLmtRk63P9kTFFHMWuzyaDZ/V0iHVGV5bAZ8h3TXPI82WF7aWVtYiqqxoIV4DSeG+mTtqfUy8JA==","shasum":"b21db5a3b1c3432c9ab25e181369df1fcc7efb30","tarball":"https://registry.npmjs.org/@alexx-peer/calculator/-/calculator-1.0.0.tgz","fileCount":6,"unpackedSize":9180,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBej+XB95MIxFeklygMbBmZuSbH/+IsVdIjUH1LD89EmAiEAv5muruZxYeb7/x0BtXimTNKFatWZXtPqD8TWY5RP+LI="}]},"_npmUser":{"name":"alexx-peer","email":"alexxpeer@icloud.com"},"directories":{},"maintainers":[{"name":"alexx-peer","email":"alexxpeer@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/calculator_1.0.0_1739782218197_0.7957327218532897"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-17T08:50:18.080Z","1.0.0":"2025-02-17T08:50:18.365Z","modified":"2025-02-17T08:50:18.656Z"},"maintainers":[{"name":"alexx-peer","email":"alexxpeer@icloud.com"}],"description":"A simple command-line calculator that performs basic arithmetic operations.","homepage":"https://github.com/Alexx-Peer/calculator#readme","keywords":["calculator","cli","arithmetic","vitest","eslint","javascript"],"repository":{"type":"git","url":"git+https://github.com/Alexx-Peer/calculator.git"},"author":{"name":"Alexx Peer"},"bugs":{"url":"https://github.com/Alexx-Peer/calculator/issues"},"license":"MIT","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 @alexx-peer/calculator --save-dev\n    ```\n\n\n## Usage\n\nTo use the calculator, run the script with three arguments:\n\n```bash\nnpx calculator.js 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"}