Socket
Socket
Sign inDemoInstall

turf-point

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-point - npm Package Compare versions

Comparing version 0.1.6 to 1.0.0

bench.js

2

index.js

@@ -10,3 +10,3 @@ module.exports = function(x, y, properties){

properties: properties || {}
}
};
}
{
"name": "turf-point",
"version": "0.1.6",
"version": "1.0.0",
"description": "turf point module",

@@ -25,5 +25,7 @@ "main": "index.js",

"homepage": "https://github.com/morganherlocker/turf-point",
"devDependencies": [
"tape"
],
"devDependencies": {
"0": "tape",
"benchmark": "^1.0.0",
"tape": "^3.0.3"
},
"dependencies": {

@@ -30,0 +32,0 @@ "minimist": "^0.2.0"

var test = require('tape');
var point = require('./')
var point = require('./');
test('point', function(t){
var pt = point(5, 10, {name: 'test point'})
var pt = point(5, 10, {name: 'test point'});
t.ok(pt);
t.equal(pt.geometry.coordinates[0], 5)
t.equal(pt.geometry.coordinates[1], 10)
t.equal(pt.properties.name, 'test point')
t.equal(pt.geometry.coordinates[0], 5);
t.equal(pt.geometry.coordinates[1], 10);
t.equal(pt.properties.name, 'test point');

@@ -12,0 +12,0 @@ t.throws(function() {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc