turf-is-clockwise
Advanced tools
Comparing version 0.1.2 to 1.0.0
{ | ||
"name": "turf-is-clockwise", | ||
"version": "0.1.2", | ||
"version": "1.0.0", | ||
"description": "turf isClockwise module", | ||
@@ -28,4 +28,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"benchmark": "^1.0.0", | ||
"tape": "^2.13.4" | ||
} | ||
} |
18
test.js
@@ -1,14 +0,14 @@ | ||
var test = require('tape') | ||
var isClockwise = require('./') | ||
var test = require('tape'); | ||
var isClockwise = require('./'); | ||
test('isClockwise', function(t){ | ||
var ring = [[0,0],[1,1],[1,0],[0,0]] | ||
var clockwise = isClockwise(ring) | ||
t.equal(clockwise, true, 'should take a ring and return clockwise true') | ||
var ring = [[0,0],[1,1],[1,0],[0,0]]; | ||
var clockwise = isClockwise(ring); | ||
t.equal(clockwise, true, 'should take a ring and return clockwise true'); | ||
var ring = [[0,0],[1,0],[1,1],[0,0]] | ||
var counterClockwise = isClockwise(ring) | ||
t.equal(counterClockwise, false, 'should take a ring and return clockwise false') | ||
var ring = [[0,0],[1,0],[1,1],[0,0]]; | ||
var counterClockwise = isClockwise(ring); | ||
t.equal(counterClockwise, false, 'should take a ring and return clockwise false'); | ||
t.end() | ||
t.end(); | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4381
8
40
0
2
1