1.0.3 • Published 7 years ago

node-shutter-search v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Node Shutter Search

Search Shutterstock with node and return a random image based on a query term

Usage

Require the package, like so:

const shutterSearch = require('shutter-search');

Then call it like:

new shutterSearch('fun').then((data) => {
	console.log(data);
});

which should return something like:

{
	src: 'https://thumb9.shutterstock.com/display_pic_with_logo/1412440/292297256/stock-photo-group-of-friends-having-fun-together-292297256.jpg',
	alt: 'Group of friends having fun together'
}

which you can use however you'd like.

Testing

There is a command line test js file, command-line-test.js, which you can run by either doing

npm run test

or

node command-line-test.js

You can alter this file to search for whatever you like.

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago