1.4.1 • Published 3 years ago

general-search-engine v1.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

GENERAL SEARCH ENGINE

This module will allow you to search for modules in npm, images in google, repos in github... without any API KEY

Installation

To do the installation correctly you need to have node installed

npm:

npm i general-search-engine

Usage

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'
}...]
*/

Reference

Functions references, for examples Here

1. General

FunctionResultComments
gse.version:StringPackage version
gse.homepage:StringPackage homepage
gse.bugReport:StringPackage bugReport page
gse.contact{...}Contact information
EmailContact email
DiscordDiscord tag
GithubGithub profile

2. Search

FunctionResultComments
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)

Types and Return arrays:

Npm:

Find and get npm packages preview. |Return|Object params|Return| |--|--|--| |{...} ...|title|:String| ||description|:String| ||author|:String| ||version|:String| ||maintenance|:String| ||quality|:String| ||popularity|:String|

Image:

Find and get image from Google Images. |Return|Object params|Return| |--|--|--| |{...} ...|image|:String| ||title|:String| ||from|:String|

Github:

Find and get github repositories preview. |Return|Object params|Return| |--|--|--| |{...} ...|title|:String| ||description|:String| ||topics|:String ...| ||stars|:String|

Wikipedia:

Find and get wikipedia articles preview. |Return|Object params|Return| |--|--|--| |{...} ...|title|:String| ||description|:String| ||link|:String ...|

Search:

Find and get pages preview from Google Search. |Return|Object params|Return| |--|--|--| |{...} ...|title|:String| ||description|:String| ||link|:String ...|

1.4.1

3 years ago

1.4.0

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago