blacklightapi
v1.0.7--UNSTABLE2
Published
Api da blacklight, gatos dogs e outros!
Downloads
5
Maintainers
Readme
npm i blacklightapi@latest --save
Exemplo de uso:
const blapi = require('blacklightapi')
const api = new blapi({
token:"SEU TOKEN CONSEGUIDO EM https://api.blacklight.net.br/"
});
api.gatos().then(a=>{
console.log("gatinho:"+a)
})
// doggo api
/*
use:
npm i blacklightapi && npm i jimp
*/
const blapi = require('blacklightapi')
const {read} = require('jimp')
const api = new blapi({
token:"SEU TOKEN CONSEGUIDO EM https://api.blacklight.net.br/"
});
api.doggo().then(dog=>{
let url = dog;
read(url).then(A=>{
A.write("doggo."+A.getExtension())
})
console.dir("doggo - blacklightapi")
})