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

@hotosm/geojson2vt

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hotosm/geojson2vt - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

5

package.json
{
"name": "@hotosm/geojson2vt",
"version": "0.1.2",
"version": "0.1.3",
"description": "Generates Mapbox Vector Tiles from geojson files.",

@@ -23,5 +23,4 @@ "keywords": [

"geojson-vt": "^3.2.1",
"vt-pbf": "^3.1.1",
"node-gzip": "^1.1.2"
"vt-pbf": "^3.1.1"
}
}

7

src/index.js
var fs = require('fs');
var vtpbf = require('vt-pbf');
var geojsonvt = require('geojson-vt');
const { gzip } = require('node-gzip');
const zlib = require('zlib');

@@ -81,5 +81,4 @@ var helpers = require('./helpers.js');

function writePbf(data, xPath, y) {
gzip(data).then(
buffer => fs.writeFileSync(`${xPath}/${y}.pbf`, buffer)
);
buffer = zlib.gzipSync(data);
fs.writeFileSync(`${xPath}/${y}.pbf`, buffer);
}

@@ -86,0 +85,0 @@

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