{"_id":"@cruz1508/calculator","_rev":"1-eae7e9dcebbdb62088522091b755ac7d","name":"@cruz1508/calculator","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.0":{"name":"@cruz1508/calculator","version":"1.1.0","keywords":["calculator","cli","arithmetic","vitest","eslint","javascript"],"author":{"name":"carlos"},"license":"MIT","_id":"@cruz1508/calculator@1.1.0","maintainers":[{"name":"cruz1508","email":"ccruzjr2005@gmail.com"}],"homepage":"https://github.com/cruz1508/CLI#readme","bugs":{"url":"https://github.com/cruz1508/CLI/issues"},"bin":{"calculator":"calculator.js"},"dist":{"shasum":"d59fea4658b7f20c55080e0ce3e8d97a0ad2fea6","tarball":"https://registry.npmjs.org/@cruz1508/calculator/-/calculator-1.1.0.tgz","fileCount":6,"integrity":"sha512-tdmosuiqj3urDcCMZmSXJAhUsL3QiuwhI06jut+q5+IK1Sb2qp17ThWa+uBx1nnooS8iUEPzKHE49ubzmr/2ww==","signatures":[{"sig":"MEYCIQCBlqlBrr/vspCvcG7Op4ubAGIjtgRLrYgMnV8TMGd/wgIhANynwMVHYjq/tW9Vi/idrsH0Nt82xY/OK7OGvmOKVSQa","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9049},"main":"calculator.js","engines":{"node":">=12.0.0"},"gitHead":"4371a1cb482e27c2720894583bfd7eabd4324652","scripts":{"lint":"eslint .","test":"vitest tests/calculator.test.js --globals --run --reporter verbose"},"_npmUser":{"name":"cruz1508","email":"ccruzjr2005@gmail.com"},"repository":{"url":"git+https://github.com/cruz1508/CLI.git","type":"git"},"_npmVersion":"10.9.2","description":"A simple command-line calculator that performs basic arithmetic operations.","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"carlos":"^0.4.4","eslint":"^9.19.0","vitest":"^3.0.5","globals":"^15.14.0","@eslint/js":"^9.19.0","calculator":"^0.1.12"},"_npmOperationalInternal":{"tmp":"tmp/calculator_1.1.0_1739755130508_0.9611493364283532","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@cruz1508/calculator","version":"1.1.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":"carlos"},"repository":{"type":"git","url":"git+https://github.com/cruz1508/CLI.git"},"license":"MIT","devDependencies":{"@eslint/js":"^9.19.0","calculator":"^0.1.12","carlos":"^0.4.4","eslint":"^9.19.0","globals":"^15.14.0","vitest":"^3.0.5"},"_id":"@cruz1508/calculator@1.1.1","gitHead":"bec5a7ed7fd6e58abddef3206fc6b475e556decc","bugs":{"url":"https://github.com/cruz1508/CLI/issues"},"homepage":"https://github.com/cruz1508/CLI#readme","_nodeVersion":"23.7.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-z48xo8iFjLxaq0Xq97eoriP4oqWykZRc2PX0KBb4Ol4SB3JH1kgLHCuCXSX8OfE40M+RVyOtfYlFhCuVyGMXMQ==","shasum":"8ce252de0dd8321f3a28ca41b260fc0929c4bec4","tarball":"https://registry.npmjs.org/@cruz1508/calculator/-/calculator-1.1.1.tgz","fileCount":6,"unpackedSize":9049,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEhZaNdp4mURgDsmFB4BdN4HdxGE3aVqvfEvlabNDwPGAiEAwz11VlTz7JAcsitvwDuzJCdnBsvRTJyPGXVcxIkvgxE="}]},"_npmUser":{"name":"cruz1508","email":"ccruzjr2005@gmail.com"},"directories":{},"maintainers":[{"name":"cruz1508","email":"ccruzjr2005@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/calculator_1.1.1_1739755982394_0.7880349940576261"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-17T01:18:50.374Z","modified":"2025-02-17T01:33:02.803Z","1.1.0":"2025-02-17T01:18:50.719Z","1.1.1":"2025-02-17T01:33:02.587Z"},"bugs":{"url":"https://github.com/cruz1508/CLI/issues"},"author":{"name":"carlos"},"license":"MIT","homepage":"https://github.com/cruz1508/CLI#readme","keywords":["calculator","cli","arithmetic","vitest","eslint","javascript"],"repository":{"type":"git","url":"git+https://github.com/cruz1508/CLI.git"},"description":"A simple command-line calculator that performs basic arithmetic operations.","maintainers":[{"name":"cruz1508","email":"ccruzjr2005@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 @cruz1508/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"}