shamat_shapes1

1.0.3 • Public • Published

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))

Package Sidebar

Install

npm i shamat_shapes1

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

1.39 kB

Total Files

3

Last publish

Collaborators

  • matan1809