1.5.2 • Published 3 years ago
leoapi-wrapper v1.5.2
Leo API Wrapper
This wrapper utilises leoapi
To use this wrapper you must type in the functions...
const API = require('leoapi-wrapper')
const leo = API()
//for image endpoints
leo.image('<endpoint>', {
'<param>': '<value>'
})
//for data endpoints
leo.data('<endpoint>').then(data => console.log(data))
//for text endpoints
leo.text('<endpoint>').then(data => console.log(data))
//for fun endpoints
leo.fun('<endpoint>').then(data => console.log(data))