{"_id":"@dylanmoralesmurillo/calculator","name":"@dylanmoralesmurillo/calculator","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@dylanmoralesmurillo/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":"Dylan Morales Murillo"},"repository":{"type":"git","url":"git+https://github.com/DylanMMorales/calculator.git"},"license":"MIT","devDependencies":{"@eslint/js":"^9.19.0","eslint":"^9.20.1","globals":"^15.14.0","vitest":"^3.0.5"},"_id":"@dylanmoralesmurillo/calculator@1.0.0","gitHead":"6b8b4092850b142dd144f17018ce236265c320b7","bugs":{"url":"https://github.com/DylanMMorales/calculator/issues"},"homepage":"https://github.com/DylanMMorales/calculator#readme","_nodeVersion":"23.6.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-tDbibV5sN/e92lNuHy7/L1l0wVAu8JC0Vs/I+urZw3quUH92cLAd4qv6hK8tuf1iSoAk7LBGwnG9TATy5ZQO8Q==","shasum":"910698b8347a3ccafb8ba2b276442f37eab8a727","tarball":"https://registry.npmjs.org/@dylanmoralesmurillo/calculator/-/calculator-1.0.0.tgz","fileCount":6,"unpackedSize":4729,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFvXpEy7LWPLYCXRhxu+A6vSc6r/rN7g9S4/XNuo1Ut2AiEA+h0nrjPbCml+iIY0d2xaX3OIB66QwiFG/omkm8HMxZM="}]},"_npmUser":{"name":"dylanmoralesmurillo","email":"dymoralesm@gmail.com"},"directories":{},"maintainers":[{"name":"dylanmoralesmurillo","email":"dymoralesm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/calculator_1.0.0_1739745715649_0.5923472994392609"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-16T22:41:55.548Z","1.0.0":"2025-02-16T22:41:55.862Z","modified":"2025-02-16T22:41:56.121Z"},"maintainers":[{"name":"dylanmoralesmurillo","email":"dymoralesm@gmail.com"}],"description":"A simple command-line calculator that performs basic arithmetic operations.","homepage":"https://github.com/DylanMMorales/calculator#readme","keywords":["calculator","cli","arithmetic","vitest","eslint","javascript"],"repository":{"type":"git","url":"git+https://github.com/DylanMMorales/calculator.git"},"author":{"name":"Dylan Morales Murillo"},"bugs":{"url":"https://github.com/DylanMMorales/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 @dylanmoralesmurillo/calculator --save-dev\n    ```\n\n\n## Usage\n\nTo use the calculator, run the script with three arguments:\n\n```bash\nnpx @dylanmoralesmurillo/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"}