tidbyte-client
v1.0.0
Published
Client for [tidbyte](https://github.com/flikmsg/tidbyte)
Downloads
7
Readme
tidbyte-client
Client for tidbyte
Usage
const TidbyteClient = require('tidbyte-client')
// You can optionally pass in a tidbyte server URL.
// Otherwise, it will use the public lookup.flik.im
const client = new TidbyteClient(/* url */)
client.lookup('https://www.google.com')
.then(console.log)
.catch(a => console.error(a))
async function example() {
try {
console.log(await client.lookup('https://apple.com'))
} catch (e) {
console.error('It failed!')
console.error(e)
}
}
TODO
- Proxy streaming from server