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

21 lines (16 loc) 367 B
const gse = require("../src/index") async function main(){ try{ let petition = new gse.search() .setType("github") .setQuery("express").run() console.log(await petition) petition = new gse.search() .setType("github") .setQuery("react").run() console.log(await petition) } catch(err){ console.log(err) } } main()