<commit_before>[![Build][travis.img]][travis.url]
[![Dependencies][deps.img]][deps.url]
[![Dev Dependencies][devdeps.img]][devdeps.url]

Preact Component wrapper for [Google reCAPTCHA v2][reCAPTCHA]

Heavily inspired by [React Google Recaptcha][react-google-recaptcha], but removed the dependencies and made Preact compatible.

## Installation

```shell
npm install --save preact-google-recaptcha
```

## Example

```shell
npm start
```

## Usage

All you need to do is [sign up for an API key pair][signup]. You will need the client key.

You can then use the reCAPTCHA. The default require imports a wrapped component that loads the reCAPTCHA script asynchronously.

```jsx
import { h, Component } from 'preact';<commit_msg>Modify install command<commit_after>[![Build][travis.img]][travis.url]
[![Dependencies][deps.img]][deps.url]
[![Dev Dependencies][devdeps.img]][devdeps.url]

Preact Component wrapper for [Google reCAPTCHA v2][reCAPTCHA]

Heavily inspired by [React Google Recaptcha][react-google-recaptcha], but removed the dependencies and made Preact compatible.

## Installation

```shell
npm install --save preact-grecaptcha
```

## Example

```shell
npm start
```

## Usage

All you need to do is [sign up for an API key pair][signup]. You will need the client key.

You can then use the reCAPTCHA. The default require imports a wrapped component that loads the reCAPTCHA script asynchronously.

```jsx
import { h, Component } from 'preact';
{'fraction_non_alphanumeric': 0.11890034364261168, 'fraction_numerical': 0.0013745704467353953, 'mean_word_length': 5.385964912280702, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1579208', 'n_tokens_mistral': 487, 'n_tokens_neox': 460, 'n_words': 161}