Socket
Socket
Sign inDemoInstall

turf-jsts

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    turf-jsts

A JavaScript library of spatial predicates and functions for processing geometry


Version published
Maintainers
1
Install size
2.62 MB
Created

Readme

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

Last updated on 25 Jan 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc