This is a module that gives you the area of various figures when you call its functions with an argument(s)
In Node :
let area = require('area-of-figures')
Examples:
area.square(2); //4
area.circle(2); // 12.56
Functions available:
square(side)
circle(radius)
triangle(base,height)
trapezium(a,base,height)
ellipse(a,b)
parallelogram(a,b)
sector(radius,theta)
Happy Coding !!!
Cheers :)