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' moduleexports = $pkg: /* ... */ $tasks: // Define your own task. 'captcha:gen': '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.