Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
mapbox-file-sniff
Advanced tools
Node module that returns spatial filetype.
Version format follows Semantic Version
With npm:
npm install -g mapbox-file-sniff
var filesniffer = require('mapbox-file-sniff');
var buffer = fs.readFileSync('path/to/data/file.geojson');
filesniffer.sniff(buffer, function(err, filetype){
assert.equal(filetype, 'geojson');
});
filesniffer.waft(buffer, function(err, protocol) {
assert.equal(protocol, 'omnivore:');
});
$ mapbox-file-type path/to/data/file.geojson
# geojson
$ mapbox-file-protocol path/to/data/file.geojson
# omnivore:
buffer
: Buffer object of file contents (at least length 300).sniff
returns a string
for the following filetypes:zip
shp
gpx
kml
geojson
tif
mbtiles
tilejson
serialtiles
tm2z
.waft
returns a string
for the following tilelive protocols:omnivore:
tilelive-omnivorembtiles:
node-mbtilestilejson:
node-tilejsonserialtiles
: special casetm2z
: tilelive-vectornpm test
FAQs
Detects type of spatial file
The npm package mapbox-file-sniff receives a total of 9 weekly downloads. As such, mapbox-file-sniff popularity was classified as not popular.
We found that mapbox-file-sniff demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 66 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.