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

cartodb-utils

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cartodb-utils - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "cartodb-utils",
"version": "1.0.1",
"version": "1.0.2",
"description": "Utils for working with cartodb",

@@ -5,0 +5,0 @@ "main": "index.js",

# cartodb-utils
## viz-tile-url
## Usage
```sh
bin/tile-url [viz.json url here]
npm install -g cartodb-utils
```
## `viz-url`
### CLI
```sh
viz-url [viz.json url here]
# tiles url for using in web map
```
or programatically:
### API
```js
var utils = require('cartodb-utils');
var vizUrl = 'http://documentation.cartodb.com/api/v2/viz/2b13c956-e7c1-11e2-806b-5404a6a683d5/viz.json';
// Your viz.json url here
utils.vizTileUrl('http://documentation.cartodb.com/api/v2/viz/2b13c956-e7c1-11e2-806b-5404a6a683d5/viz.json');
utils.vizTileUrl(vizUrl)
.then(tileUrl => console.log(tileUrl))
.catch(error => console.error(error));
```

Sorry, the diff of this file is not supported yet

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