# sb-google-recaptcha

> Google Recaptcha as an HTML5 Custom Element

Latest version **1.0.2** (published 2015-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install sb-google-recaptcha
pnpm add sb-google-recaptcha
yarn add sb-google-recaptcha
bun add sb-google-recaptcha
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2015-10-24 |
| First published | 2015-09-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | steelbrain |
| Maintainers | steelbrain |
| Keywords | html5 |

## Links

- npm: https://www.npmjs.com/package/sb-google-recaptcha
- Repository: https://github.com/steelbrain/google-recaptcha
- Homepage: https://github.com/steelbrain/google-recaptcha#readme
- Issues: https://github.com/steelbrain/google-recaptcha/issues
- npm.io page: https://npm.io/package/sb-google-recaptcha

## Dependencies (1)

- [custom-element-base](https://npm.io/package/custom-element-base.md) ^2.0.0

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2015-10-24
- 1.0.1 — 2015-09-09
- 1.0.0 — 2015-09-09

## README

Google-Recaptcha
===============
Google-Recaptcha is a HTML5 Custom Element that empowers you to use the Google Recaptcha without knowing their API at all. It's easy as in pie.

For browsers who don't support native custom elements, You're gonna need to import a polyfill :(

#### API
```js
class GoogleRecaptcha extends HTMLElement {
  reset(): void
  getResponse(): string
}
```

#### Example Usage
Every attribute other than the site key is optional.
```html
<google-recaptcha theme="dark" type="image" sitekey="your-site-key-here"></google-recaptcha>
```
```js
const captcha = document.createElement('google-recaptcha')
captcha.setAttribute('sitekey', 'your-site-key-here')
document.body.appendChild(captcha)
```

#### License
This project is licensed under the terms of MIT License, see the LICENSE file for more info.

---
_Source: https://npm.io/package/sb-google-recaptcha · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
