0.1.1 • Published 3 years ago

bing-image v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

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