New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bing-images

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bing-images

Generates images from bing's Image Creation.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bing-image-Ai

Generates images from microsoft's Image Creation website.

Installation

Install with: npm install bing-images

Use as: const { bingImageClient } = require('bing-images');

Authentication

To authenticate yourself, please firstly:

  1. Go to https://www.bing.com/images/create
  2. Go into inspect element (Right click -> Inspect Element)
  3. Go to the Application tab on the top of th new tabe which has opened up (Expand it if you can't see it).
  4. Go to the Cookies
  5. Search for '_U' and enter the value in token , you can also enter all cookies at once

And you are now authenticated!

Usage TypeScript

See demo/imagedownload.ts as a usage example for a typescript.

Disallowed Content

Currently, Bing does stop certain prompts. It is possible to bypass this, however I have not found a prompt which bypasses everything. For now I have just created an error which should alert you that Bing has blocked a prompt. However, if you do want to try to bypass Bing, here is an example of what the prompt should look like:

Example Using This Features For Nodejs

const = { bingImageClinet } = require('bing-images')

const client = new BingImageClient({
token: process.env.cookie
notify: false
});

const result = await client.getImages('cute cat')
console.log(result)

Credits

Keywords

FAQs

Package last updated on 28 Dec 2023

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc