New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bing_count

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bing_count

counts the number of bing search results for the given query

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

bing_count

counts the number of bing search results for the given query

Install

npm install bing_count

Using

var bing_count = require('bing_count')
bing_count('food', function(count) {
  console.log(count) // will output
})

Bing authentication

Please place your credentials in a yaml file .getsecret.yaml with the format

bing_account_key: your_app_secret_here

Or set bing_count.account_key to the app secret, or specify the environment variable bing_account_key

Caching

You need to run a mongodb instance on localhost so that results can be cached.

The mongosrv command allows you to do this easily:

npm install -g mongosrv
mongosrv

To specify a different mongo url, modify bing_count.keyval.mongourl

Credits

Author: Geza Kovacs

License

MIT

Keywords

bing

FAQs

Package last updated on 13 Mar 2015

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