0.6.2 • Published 4 years ago

nuxtjs-recaptcha-cn v0.6.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Google reCAPTCHA

npm version npm downloads Circle CI Codecov Dependencies Standard JS

🤖 Simple and easy Google reCAPTCHA integration with Nuxt.js

📖 Release Notes

Setup

  1. Add @nuxtjs/recaptcha dependency with yarn or npm into your project
  2. Add @nuxtjs/recaptcha to modules section of nuxt.config.js
  3. Configure it:
{
  modules: [
    [
      '@nuxtjs/recaptcha', {
        /* reCAPTCHA options */
      }
    ],
  ]
}

using top level options

{
  modules: [
    '@nuxtjs/recaptcha',
  ],

  recaptcha: {
    /* reCAPTCHA options */
  },
}

Configuration

{
  // ...
  recaptcha: {
    hideBadge: Boolean, // Hide badge element (v3)
    language: String,   // Recaptcha language (v2)
    siteKey: String,    // Site key for requests
    version: Number     // Version
  },
  // ...
}

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

License

MIT License

Copyright (c) mvrlin mvrlin@pm.me