1.0.1 • Published 3 years ago
lenny-api v1.0.1
lenny-api@1.0.1
npm i lenny-api
Nedir?
- Bu paket rastgele ve güzel LENNY'LER almanı sağlar. Her kullanım 1 tane lenny sağlar.
Kaynak?
Kullanım
Async olmayan Fonksiyon
const lennyapi = require('lenny-api');
lennyapi.lenny().then(lenny => {
console.log(lenny)
// ya da başka bir kod...
})
Async olan Foksiyon
const lennyapi = require('lenny-api');
async function lenFunction() {
const lenny = await lennyapi.lenny();
console.log(lenny)
// ya da başka bir kod...
}
lenFunction()