Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
stocksnap.io
Advanced tools
A make-shift api interpreter for stocksnap.io
npm install stocksnap.io --save
query:(string) Search term, can be null (will default to no search).
options:(object) can contain:
* sort:(string) Source of images by sort by pages, can be relevance (when using a search query), date, trending, views, downloads and favorites.
* pages:(int) Amount of pages you want to rip.
* shuffle:(bool) If you want to shuffle the final array for a more random array of photos.
* highres:(bool) If you want the image links referencing to the downloadable high res images instead of the thumbnails.
fn:(function) Callback that gives an array with photos as a variable.
//Require the module
var stocksnap = require('stocksnap.io');
//options object
var options = {
sort: 'views'
};
//Getting pictures of doors
stocksnap('doors', options, function (snaps) {
console.log('Pictures of doors', snaps);
});
//Look at test.js for more examples
npm test
Do whatever, and give me a pull request. Sorry for the sloppy coding.
Check LICENSE for more information.
FAQs
A make-shift api interpreter for stocksnap.io
The npm package stocksnap.io receives a total of 0 weekly downloads. As such, stocksnap.io popularity was classified as not popular.
We found that stocksnap.io demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.