🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

2d-polygon-area

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

2d-polygon-area

compute the area of a 2d polygon

1.0.0
latest
Source
npm
Version published
Weekly downloads
3.1K
30.05%
Maintainers
1
Weekly downloads
 
Created
Source

2d-polygon-area

compute the area of a 2d polygon

install

npm install 2d-polygon-area

use

var square = [
[0, 0],
[10, 0],
[10, 10],
[0, 10]
].reverse();

console.log(area(square));

// outputs: 100

license

MIT

Keywords

2d

FAQs

Package last updated on 23 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts