Generate longer captchas
Every captcha that is generated is 5 characters long.
If I want to generate an 8-length captcha using the code below:
const { token, buffer } = captcha(8)
A 5-length captcha is generated instead.
Ok, I like this feature.
@vipersec See https://github.com/trekjs/captcha/tree/pure-js.
I had refactored it to pure JS. We can do more.
SyntaxError: Unexpected token function
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at babelWatchLoader (D:\DT\H5DS3.0\build\node_modules.2.0.7@babel-watch\run
ner.js:50:13)
at Object.require.extensions.(anonymous function) [as .js] (D:\DT\H5DS3.0\bu
ild\node_modules.2.0.7@babel-watch\runner.js:61:7)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.
@mtsee Which Node.js version you are using?
v6.2.0
async/await requires v8+.