1.0.3 • Published 2 years ago

shamat_shapes1 v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

welcome to shamat_shapes1:

An npm package to claculate areas of shapes

how to install:

to install the package run: npm install shamat_shapes1

usage:

var check = require("shamat_shapes1")

The package includes the claculate of the following shapes:

  • circle(radius)- insert the radius, returns the area
  • triangle(base,height)-insert the base and the height, returns the area
  • square(Length)- insert the lenght ,returns the area

example: console.log(check.circle(3)) console.log(check.triangle(2,5)) console.log(check.square(6))