general-search-engine
Version:
This module will allow you to search for modules in npm, images in google, repos in github... without any API KEY GENERAL-SEARCH-ENGINE
21 lines (16 loc) • 373 B
JavaScript
const gse = require("../src/index")
async function main(){
try{
let petition = new gse.search()
.setType("image")
.setQuery("Pink elephant").run()
console.log(await petition)
petition = new gse.search()
.setType("image")
.setQuery("red sky").run()
console.log(await petition)
} catch(err){
console.log(err)
}
}
main()