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

turf-jsts

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-jsts

A JavaScript library of spatial predicates and functions for processing geometry

  • 1.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
674K
increased by25.16%
Maintainers
1
Weekly downloads
 
Created
Source

JSTS used in TurfJS

Build Status

This version of JSTS is refactored to ES6 for the sole purpose of importing it to TurfJS.

More information about the original library: https://github.com/bjornharrtell/jsts

This library is not intended to be used outside of TurfJS

Current issue with JSTS

JSTS has big problems when making it ES Module & CJS compatible.

The other major issue I found was the extend() method that JSTS uses copies the entire section of that source code. For example if we have 4 Turf modules that use JSTS, that means we will have 4x GeoJSONReader source code in the final Rollup bundle.

Solution

Refactoring JSTS to proper ES6 Classes which will allow Rollup and other bundling libraries to properly conduct Tree Shaking.

Keywords

FAQs

Package last updated on 25 Jan 2018

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

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