3.2.1 • Published 1 year ago

square-calc v3.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Square Calculator

A simple app for calculating the square of a number.

Installation

You can install the package using npm:

npm install square-calc

Usage

Here's how you can use the square-calc module in your project:

CJS (square-calc v2 is cjs)

const calculateSquare = require('square-calc');

const number = 5;
console.log(`The square of ${number} is ${calculateSquare(number)}`);

ESM (square-calc v3 is pure esm)

import calculateSquare from 'square-calc';

const squaredNumber = calculateSquare(5);
console.log(squaredNumber); // Output: 25
3.3.0

1 year ago

2.4.0

1 year ago

3.2.1

1 year ago

3.2.0

1 year ago

2.3.0

1 year ago

3.1.0

1 year ago

2.2.3

1 year ago

3.0.0

1 year ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago