apeman-task-captcha

2.0.1 • Public • Published

apeman-task-captcha

Build Status Code Climate Code Coverage npm Version JS Standard

apeman task to generate captcha images.

Installation

$ npm install apeman-task-captcha --save-dev

Usage

  1. Define a task within Apemanfile.js
  2. 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.

Links

Dependencies (8)

Dev Dependencies (12)

Package Sidebar

Install

npm i apeman-task-captcha

Weekly Downloads

8

Version

2.0.1

License

MIT

Last publish

Collaborators

  • okunishinishi