npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

bing-cli

v0.2.4

Published

Use Bing Search in the terminal via command line

Readme

bing-cli

Execute Bing Search queries from the terminal including Web, News, Related Search, AutoSuggest, and Images. Images are displayed as colorized-ASCII art or as inline images directly (if using iTerm2).

Note: This project is not affiliated with Microsoft Corporation

Join the chat at https://gitter.im/bing-cli/Lobby build status npm version License dependency Status devDependency Status

Installation

First, install GraphicsMagick to support the image search features GraphicsMagick. In Mac OS X, you can simply use Homebrew and do:

$ brew install graphicsmagick

Then, the Bing-CLI module is installed globally via npm:

$ npm install bing-cli -g

Usage

This package is meant to be used as a command-line tool.

$ bing <search query> [-c <n>]
$ bing image <query> [-full] [-unsafe] [-c <n>] [-type <imageType>] [-size <imageSize> [-bw] [-grey] [-pixels] [-blocks] [-bg <rgb>]]
$ bing images <query> [-unsafe] [-c <n>]
$ bing news
$ bing news <query>
$ bing related <query>
$ bing suggest <query>
$ bing -version

Examples

This package is meant to be used as a command-line tool.

$ bing puff the magic dragon
$ bing -c 3 "sql server on linux"
$ bing images famous people
$ bing image yosemite -full
$ bing image apple logo -size small -full -scale 0.5 -ascii -bw -invert
$ bing image hawaii -ascii -pixels
$ bing news
$ bing news politics
$ bing news azure aws google cloud
$ bing related apache spark
$ bing suggest gaussi
$ bing netscaler manual fileType:pdf
$ bing image homeaway.com logo -ascii -blocks -size medium -invert -scale 0.8

Example Screen Shot

Configuration

Subscribing to APIs

Bing-CLI requires API keys from Microsoft to work at scale. There is a trial set of API keys included with limited query quota that is enough for trying it out.

Sustained usage will require that you get your API keys, you will need to sign up for Microsoft Congnitive Services by creating a new account with an email, or by signing up with your GitHub or LinkedIn account. Once you do this, you can click on the Pricing link to subscribe to a free-tier of services (more than enough for personal use) for the following APIs:

  • Bing Web Search - Free
  • Bing Autosuggest - Free

Setting Environment Variables

Once you subscribe to each API, you can then click the Show link to reveal the API keys. Then copy these keys and put them in the exports for the .bash_profile (as mentioned above).

export BING_SEARCH_KEY=<your key here>
export BING_AUTOSUGGEST_KEY=<your key here>

Make sure to restart the shell or source .bash_profile (or other shell profile file) for the changes to take effect.

$ source ~/.bash_profile

Development

Testing

npm test

Bugs

Please report any bugs here.

Changelog

Available here.

License

MIT