Displaying 1 to 4 from 4 results

geojson-extent - Compute an extent given a GeoJSON object.

  •    Javascript

Compute an extent given a GeoJSON object.Provides a binary that takes GeoJSON as stdin and returns a JSON stringified array of extent data.

js-strange - Range object for JavaScript

  •    Javascript

stRange.js is a range object for JavaScript. Use it to have a single value type with two endpoints and their boundaries. Also implements an interval tree for quick lookups. Stringifies itself in the style of [begin,end) and allows you to parse a string back. Also useful with PostgreSQL. stRange.js follows semantic versioning, so feel free to depend on its major version with something like >= 1.0.0 < 2 (a.k.a ^1.0.0).

binary-search-bounds - Better binary searching

  •    Javascript

Binary search on arrays for predecessor, successor and range queries. The main reason for using a binary search or ordered set data structure instead of a hash map is to support fast predecessor/successor queries. Besides this library, I am aware of no other modules on npm which implement these semantics (making them effectively useless)!!! binary-search-bounds corrects this sad state of affairs.