You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

geojson-bbox

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geojson-bbox

Calculates extent/bbox for a given valid geojson object.

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
3.9K
16.76%
Maintainers
1
Weekly downloads
 
Created
Source

geojson-bbox

Calculates extent/bbox for a given valid geojson object. When passed a valid geojson returns an array of bounding box

installation

npm install geojson-bbox

usage

var bbox = require('geojson-bbox');
var feature = { 
  type: 'Feature',
  geometry: {
    type: 'LineString', 
    coordinates: [
      [10, 40], [40, 30], [20, 20], [30, 10]
    ]
  }
};
var extent = bbox(feature); 
// extent is array 
// [10, 10, 40, 40]

developing

Once you run

npm isntall

then for running test

npm run test

to create build

npm run build

license

This project is licensed under the terms of the MIT license.

Keywords

geojson

FAQs

Package last updated on 29 Oct 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.