apeman-task-captcha
v2.0.1
Published
apeman task to generate captcha images.
Downloads
9
Readme
apeman-task-captcha
apeman task to generate captcha images.
Installation
$ npm install apeman-task-captcha --save-dev
Usage
- Define a task within Apemanfile.js
- Call the task via apeman task command.
Apemanfile.js
/** This is an example Apemanfile to use apeman-task-captcha */
'use strict'
module.exports = {
$pkg: {/* ... */},
$tasks: {
// Define your own task.
'captcha:gen': require('apeman-task-captcha')('captcha.json', {
//Options
imageDir: 'public/captcha'
})
}
}
Then,
$ apeman task my-task-01
Signature
define(filename, options) -> function
apeman task to generate captcha images.
Args
| Name | Type | Default | Description | | --- | ---- | --- | --- | | filename | string | | Data file name. | | options | object | | Optional settings. | | options.count | number | 25 | Count of images | | options.imageDir | string | captcha | Images directory. | | options.clean | boolean | | Cleanup image directory before generating. |
License
This software is released under the MIT License.