Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/knownasilya/carto-utils

Util cli/modules for working with carto
https://github.com/knownasilya/carto-utils

carto cartodb tiles

Last synced: 10 days ago
JSON representation

Util cli/modules for working with carto

Awesome Lists containing this project

README

        

# carto-utils

## Usage

```sh
npm install -g cartodb-utils
```

## `viz-url`

### CLI

```sh
viz-url [viz.json url here]
# tiles url for using in web map
```

### API

```js
var utils = require('cartodb-utils');
var vizUrl = '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));
```