Installations
npm install turf-invariant
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
4.4.7
NPM Version
2.15.8
Score
90.1
Supply Chain
90.5
Quality
75.2
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
Turfjs
Download Statistics
Total Downloads
4,823,143
Last Day
2,450
Last Week
10,879
Last Month
46,880
Last Year
724,074
GitHub Statistics
2 Stars
16 Commits
5 Watching
1 Branches
1 Contributors
Bundle Size
1.49 kB
Minified
509.00 B
Minified + Gzipped
Package Meta Information
Latest Version
3.0.12
Package Id
turf-invariant@3.0.12
Size
2.23 kB
NPM Version
2.15.8
Node Version
4.4.7
Publised On
05 Jul 2016
Total Downloads
Cumulative downloads
Total Downloads
4,823,143
Last day
-6.5%
2,450
Compared to previous day
Last week
-9.3%
10,879
Compared to previous week
Last month
2.5%
46,880
Compared to previous month
Last year
-9.3%
724,074
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
1
turf-invariant
enforce expectations about inputs to turf
geojsonType(value, type, name)
Enforce expectations about types of GeoJSON objects for Turf.
Parameters
parameter | type | description |
---|---|---|
value | GeoJSON | any GeoJSON object |
type | string | expected GeoJSON type |
name | String | name 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
parameter | type | description |
---|---|---|
feature | Feature | a feature with an expected geometry type |
types | string | expected GeoJSON type |
name | String | name 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
parameter | type | description |
---|---|---|
featurecollection | FeatureCollection | a featurecollection for which features will be judged |
type | string | expected GeoJSON type |
name | String | name of calling function |
Installation
Requires nodejs.
1$ npm install turf-invariant
Tests
1$ npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/16 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More