🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

searchbyimage

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

searchbyimage

Guess the image content using Google search

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

searchbyimage

Guess the image content using Google search.

npm version Build Status

Installation

$ npm install searchbyimage -S

Example

const searchByImage = require('searchbyimage');

const image = 'https://pixabay.com/static/uploads/photo/2014/11/07/21/39/oporto-521258_640.jpg';

// Using callback
searchByImage(image, (err, res)=> {
  console.log(res); // {guess: 'night'}
})

// or promise
searchByImage(image).then((res)=> {
  console.log(res); // {guess: 'night'}
})

Options

  • userAgent - The user-agent string used in request.
  • language - Google result language (supported langs) (default: 'en')

Documentation

searchByImage ( localImageFile, [options,] [callback] ) -> Promise

searchByImage ( imageUrl, [options,] [callback] ) -> Promise

Tests

To run the test suite, first install the dependencies, compile and then run npm test:

$ npm install
$ npm run build
$ npm test

License

MIT

Keywords

search

FAQs

Package last updated on 18 Apr 2016

Did you know?

Socket

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