README
apeman-app-captcha
apeman app to verify captcha
Installation
$ npm install apeman-app-captcha --save
Usage
- Define an app within Apemanfile.js
- Call the app via apeman app command.
Apemanfile.js
/** This is an example Apemanfile to use apeman-app-captcha */
'use strict'
// captcha configuration generated by apeman-task-captcha
const captureConfig = require('../tmp/captcha/captcha.json')
module.exports = {
$pkg: { /* ... */},
$apps: {
// Define your own app.
'my-app-01': {
// Map url and handlers.
'/': [
require('apeman-app-captcha')(captureConfig, {
// Options
})
]
}
}
}
Then,
$ apeman app my-app-01 -p 3000
Signature
apemanAppCaptcha(captchas, options) -> function
apeman app to verify captcha
Args
Name | Type | Default | Description |
---|---|---|---|
captchas | object | Capture config data. | |
options | object | Optional settings. |
Endpoints
url | METHOD |
---|
License
This software is released under the MIT License.