nectar-leg

v2.0.0
A fun JavaScript library for working with rectangles.
geometry quadrilaterals fun

Nectar Leg

A fun little library for working with rectangles in JavaScript.

API

Nectar Leg takes four arguments: x, y, width, and height.

It also has two methods:

  • area: returns the area of the rectangle
  • perimeter: returns the perimeter of the rectangle
npm i nectar-leg

Metadata

  • MIT
  • Whatever
  • Steve Kinney
  • released 2/24/2016

Downloads

Maintainers