cronshot-local
CronShot middleware to save images to the local filesystem
npm install cronshot-local
Setup
Install CronShot
npm install cronshot
Example
var cronshot = require('cronshot'),
middleware = {
local: require('cronshot-local')
};
cronshot.startCapturing({
'url': 'http://sports.yahoo.com',
'path': __dirname,
'cronPattern': false,
'saveMiddleware': [middleware.local],
}, function(err) {
if (err) {
console.error(err);
}
});
Options
{
'path': '',
'imageName': ''
}
Contributing
Please send all PR's to the dev
branch.
If your PR is a code change:
- Install all node.js dev dependencies:
npm install
- Update the appropriate module inside of the
src/modules
directory. - Add a unit test inside of
tests/unit/cronshot-local.js
. - Verify that all tests are passing by running
npm test
. - Send the PR!
Contributors