apeman-task-captcha
apeman task to generate captcha images.
Last updated 4 years ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install apeman-task-captcha 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.1                                ...           latest (4 years ago)

11 Versions

  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.8                                ...           4 years ago
  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (12)

Copyright 2014 - 2017 © taobao.org |