1.0.3 • Published 3 years ago

galeria.js v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

galey-public.API

api oficial da galeria publica

como usar?

const galey = require("galeria.js")
let g = new galey()

g.rand().then((res) => {
  console.log(res) //https://imagem.png
})

Async / Await

let galey = require("galeria.js")
let g = new galey()

async function main() {
  const reply = await g.rand()
  console.log(reply);
}
main();

eventos

<> = obrigatório [] = opcional

.rand(...)

g.rand([numero])//imagem aleatória

.getdatabase(...)

g.getdatabase() //retornar a DATABASE

.json(...)

g.json([numero]) //retorna o numero de links de imagens aleatórias

.id(...)

g.id(<numero>) //retornar o id de uma imagem na DATABASE(ids ficam abaixo da imsgens no site)
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago