2.0.0 • Published 11 months ago

@zaneray/recaptcha-node v2.0.0

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

ZaneRay Recaptcha

  • turns recaptcha api call into a boolean

Requirements

Usage

in your node project

npm install --save @zaneray/recaptcha-node

in your application code

const Recaptcha = require('@zaneray/recaptcha-node');

//score ranges from 0 - 1.0 - lower numbers are more prone to be bots

const recaptcha = new Recaptcha(process.env.RECAPTCHA_SECRET_KEY, process.env.RECAPTCHA_MINUMUM_SCORE);

if (recaptcha.verify(req.body['g-recaptcha-response'])) {
    //likely not a bot, continue
} else {
    //likely a bot, handle this case elegantly so real users are not angry
}
2.0.0

11 months ago

1.2.0

12 months ago

1.0.2

12 months ago

1.1.0

12 months ago

1.0.3

12 months ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.7

2 years ago