1.0.1 • Published 1 year ago

cat-term-two v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Simple Adding and Multiplying Calculator API

A simple API for adding and multiplying an array of numbers very well.

Installation

To install the required dependencies, run the following command in your terminal: npm i cat-term-two

Usage

To run the API, run the following command in your terminal: npm start

The API will be running at http://localhost:3000. You can use a tool such as Postman to send GET requests to the API.

Adding an Array of Numbers

To add an array of numbers, send a GET request to the following URL: http://localhost:3000/add?numbers=[number1,number2,number3,...]

Multiplying an Array of Numbers

To multiply an array of numbers, send a GET request to the following URL: http://localhost:3000/multiply?numbers=[number1,number2,number3,...]

Replace [number1,number2,number3,...] with a comma-separated list of numbers. The API will return the product of the numbers in the array.

For example, to multiply the numbers 1, 2, and 3, send a GET request to the following URL:

http://localhost:3000/multiply?numbers=1,2,3

Contributing

If you would like to contribute to this project, please open an issue or submit a pull request.

License

This project is licensed under the ISC License.

1.0.1

1 year ago

1.0.0

1 year ago