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

turf-invariant

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-invariant

enforce expectations about inputs to turf

  • 3.0.0-canary.2f5f7167
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13K
increased by8.43%
Maintainers
1
Weekly downloads
 
Created
Source

turf-invariant

build status

enforce expectations about inputs to turf

geojsonType(value, type, name)

Enforce expectations about types of GeoJSON objects for Turf.

Parameters

parametertypedescription
valueGeoJSONany GeoJSON object
typestringexpected GeoJSON type
nameStringname of calling function

featureOf(feature, types, name)

Enforce expectations about types of Feature inputs for Turf. Internally this uses geojsonType to judge geometry types.

Parameters

parametertypedescription
featureFeaturea feature with an expected geometry type
typesstringexpected GeoJSON type
nameStringname of calling function

collectionOf(featurecollection, type, name)

Enforce expectations about types of FeatureCollection inputs for Turf. Internally this uses geojsonType to judge geometry types.

Parameters

parametertypedescription
featurecollectionFeatureCollectiona featurecollection for which features will be judged
typestringexpected GeoJSON type
nameStringname of calling function

Installation

Requires nodejs.

$ npm install turf-invariant

Tests

$ npm test

Keywords

FAQs

Package last updated on 16 May 2016

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