This module will allow you to search for modules in npm, images in google, repos in github... without any API KEY
To do the installation correctly you need to have node installed
npm:
npm i general-search-engine
const gse = require("general-search-engine")
async function main(){
let petition = await new gse.search()
.setType("image")
.setQuery("pink elephant").run()
console.log(petition)
}
main()
/*
This will return an array like this:
[{
image: <IMAGE URL>,
title: 'Pink Elephant | pint...',
from: 'pinterest.com'
},
{
image: <IMAGE URL>,
title: 'Buy Pink Elephant...',
from: 'amazon.com'
}...]
*/
Functions references, for examples Here
Function | Result | Comments |
---|---|---|
gse.version | :String | Package version |
gse.homepage | :String | Package homepage |
gse.bugReport | :String | Package bugReport page |
gse.contact | {...} | Contact information |
Contact email | ||
Discord | Discord tag | |
Github | Github profile |
Function | Result | Comments |
---|---|---|
new gse.search() | {...} | Contact information |
.setType(type) | Set the search type | |
.setQuery(query) | Set the query to search | |
.setOptions({options}) | Set search options | |
.run() | Make the search with the actual parameters (This funcion is asynchronous) |
Find and get npm packages preview.
Return | Object params | Return |
---|---|---|
[{...} ...] | title | :String |
description | :String | |
author | :String | |
version | :String | |
maintenance | :String | |
quality | :String | |
popularity | :String |
Find and get image from Google Images.
Return | Object params | Return |
---|---|---|
[{...} ...] | image | :String |
title | :String | |
from | :String |
Find and get github repositories preview.
Return | Object params | Return |
---|---|---|
[{...} ...] | title | :String |
description | :String | |
topics | [:String ...] | |
stars | :String |
Find and get wikipedia articles preview.
Return | Object params | Return |
---|---|---|
[{...} ...] | title | :String |
description | :String | |
link | [:String ...] |
Find and get pages preview from Google Search.
Return | Object params | Return |
---|---|---|
[{...} ...] | title | :String |
description | :String | |
link | [:String ...] |