UNPKG

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

22 lines (16 loc) 411 B
const gse = require("../src/index") async function main(){ try{ /*let petition = new gse.search() .setType("twitch") .setQuery("express").run() console.log(await petition)*/ petition = new gse.search() .setType("wikipedia") .setQuery("radiometer").setOptions({language: "es"}).run() console.log(await petition) } catch(err){ console.log(err) } } main()