/node-bing-image

get bing.com's daily picture's url

Primary LanguageJavaScriptMIT LicenseMIT

node-bing-image

Install

$ npm i bing-image

Usage

Default

const bing = require('bing-image');

const callbackFn = (err, url) {
    console.log(url);
};

bing.getPicUrl(callbackFn);

Optionally

const bing = require('bing-image');

const imageSize = {
    width: 1920,
    height: 1080
};

const callbackFn = (err, url) => {
    console.log(url);
};

bing.getPicUrl(callbackFn, imageSize);