geohub
GeoJSON extractor for Github repos and gists.
Extracts and parses GeoJSON files from Github repos and gists using the Github API.
Install
npm install geohub
Usage
geohub = var user = 'chelm'var repo = 'grunt-geo'var path = 'forks' // Extract GeoJSON from a specific path in a repositorygeohub // Omit the 'path' option to extract all GeoJSON files from a repositorygeohub // You can also extract GeoJSON from a specific branch of a repogeohub // Check a file's SHA (useful for caching)geohub // Extract GeoJSON from a gistgeohub
Test
Geohub uses tape for testing. It is recommended to create your own Github access token for use during testing to ensure you will not hit Github API rate limits.
GITHUB_TOKEN=XXXXXX npm test