lisposter / node-bing-image

get bing.com's daily picture's url

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);

About

get bing.com's daily picture's url

License:MIT License


Languages

Language:JavaScript 100.0%