Installations
npm install turf-hex-grid
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
4.4.7
NPM Version
2.15.8
Score
88.4
Supply Chain
82.4
Quality
76.6
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
Turfjs
Download Statistics
Total Downloads
3,664,435
Last Day
2,286
Last Week
9,766
Last Month
42,508
Last Year
650,216
GitHub Statistics
17 Stars
47 Commits
3 Forks
3 Watching
2 Branches
6 Contributors
Bundle Size
4.71 kB
Minified
1.55 kB
Minified + Gzipped
Package Meta Information
Latest Version
3.0.12
Package Id
turf-hex-grid@3.0.12
Size
4.13 kB
NPM Version
2.15.8
Node Version
4.4.7
Publised On
05 Jul 2016
Total Downloads
Cumulative downloads
Total Downloads
3,664,435
Last day
-3.1%
2,286
Compared to previous day
Last week
-9.9%
9,766
Compared to previous week
Last month
3.7%
42,508
Compared to previous month
Last year
-6.1%
650,216
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Dev Dependencies
5
turf-hex-grid
turf.hex-grid(bbox, cellWidth, units)
Takes a bounding box and a cell size in degrees and returns a FeatureCollection of flat-topped hexagons (Polygon features) aligned in an "odd-q" vertical grid as described in Hexagonal Grids
Parameters
parameter | type | description |
---|---|---|
bbox | Array.<number> | bounding box in [minX, minY, maxX, maxY] order |
cellWidth | Number | width of cell in specified units |
units | String | used in calculating cellWidth ('miles' or 'kilometers') |
Example
1var bbox = [-96,31,-84,40]; 2var cellWidth = 50; 3var units = 'miles'; 4 5var hexgrid = turf.hexGrid(bbox, cellWidth, units); 6 7//=hexgrid
Returns FeatureCollection
, units used in calculating cellWidth ('miles' or 'kilometers')
Installation
Requires nodejs.
1$ npm install turf-hex-grid
Tests
1$ npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 existing vulnerabilities detected
Reason
Found 3/28 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- 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
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 6 are checked with a SAST tool
Score
3.2
/10
Last Scanned on 2025-02-03
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