Fetch and query cartodb data from using elastic-search-like syntax.
npm install cartodb-es6-data-backend
import Cartodb from 'cartodb-es6-data-backend';
const config = {
user: 'username',
table: 'table.name'
}
Cartodb.fetch(config)
.then(data => {
// use your data wisely
})
.catch(e => {
// handle exception
});