Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

turf-linestring

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-linestring - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

.travis.yml

4

index.js
module.exports = function(coordinates, properties){
if(coordinates === null) return new Error('No coordinates passed')
if(!coordinates) return new Error('No coordinates passed')
var linestring = {

@@ -12,2 +12,2 @@ "type": "Feature",

return linestring
}
}
{
"name": "turf-linestring",
"version": "0.1.0",
"version": "0.1.1",
"description": "turf lineString module",

@@ -5,0 +5,0 @@ "main": "index.js",

turf-linestring
===============
[![Build Status](https://travis-ci.org/Turfjs/turf-linestring.svg?branch=master)](https://travis-ci.org/Turfjs/turf-linestring)
Creates a geojson linestring Feature based on a coordinate array. Properties can be added optionally.
```js
var linestring = require('turf-linestring')
var linestring1 = linestring([[102.0, -10.0], [103.0, 1.0], [104.0, 0.0], [130.0, 4.0]])
var linestring2 = linestring([[102.0, -10.0], [103.0, 1.0], [104.0, 0.0], [130.0, 4.0]],
{name: 'line 1', distance: 145})
console.log(linestring1)
console.log(linestring2)
```

Sorry, the diff of this file is not supported yet

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