1.0.3 • Published 7 years ago

psquare v1.0.3

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

psquare

This is a node package that checks if an input is a perfect square and returns true or false

How to use

npm install --save psquare

include in your script as:

var psquare = require('psquare');

Use as:

// returns true or false
// pass the number as argument to the check method
psquare.check(49);

Example would be:

var psquare = require('psquare');

// Check if a number is a perfect square or not, returns true or false
if (psquare.check(49)) {
 console.log("Is perfect square")
}
1.0.3

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago