Socket
Socket
Sign inDemoInstall

general-search-engine

Package Overview
Dependencies
8
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    general-search-engine

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


Version published
Weekly downloads
4
decreased by-33.33%
Maintainers
1
Install size
525 kB
Created
Weekly downloads
 

Readme

Source

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
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.

ReturnObject paramsReturn
[{...} ...]title:String
description:String
author:String
version:String
maintenance:String
quality:String
popularity:String
Image:

Find and get image from Google Images.

ReturnObject paramsReturn
[{...} ...]image:String
title:String
from:String
Github:

Find and get github repositories preview.

ReturnObject paramsReturn
[{...} ...]title:String
description:String
topics[:String ...]
stars:String
Wikipedia:

Find and get wikipedia articles preview.

ReturnObject paramsReturn
[{...} ...]title:String
description:String
link[:String ...]

Find and get pages preview from Google Search.

ReturnObject paramsReturn
[{...} ...]title:String
description:String
link[:String ...]

Keywords

FAQs

Last updated on 19 Jul 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc