NPM npm install --save labstack
Yarn yarn add labstack
Sign up to get an API key
Create a file app.js with the following content:
const {Client, APIError} = require('labstack')
const client = new Client('<API_KEY>')
const geocode = client.geocode()
geocode.address('eiffel tower')
.then(response => {
console.info(response)
})
.catch(error => {
console.error(error)
})From terminal run your app:
node app.js