# firebase-validate-key

> Validate that a string is a valid Firebase key

Latest version **2.0.1** (published 2015-06-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install firebase-validate-key
pnpm add firebase-validate-key
yarn add firebase-validate-key
bun add firebase-validate-key
```

## 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 | 2.0.1 |
| Published | 2015-06-18 |
| First published | 2015-04-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | firebase, key, validation |

## Links

- npm: https://www.npmjs.com/package/firebase-validate-key
- Repository: https://github.com/bendrucker/firebase-validate-key
- Homepage: https://github.com/bendrucker/firebase-validate-key#readme
- Issues: https://github.com/bendrucker/firebase-validate-key/issues
- npm.io page: https://npm.io/package/firebase-validate-key

## Dependencies (1)

- [escape-string-regexp](https://npm.io/package/escape-string-regexp.md) ~1.0.3

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2015-06-18
- 2.0.0 — 2015-06-18
- 1.0.0 — 2015-04-29

## README

# firebase-validate-key [![Build Status](https://travis-ci.org/bendrucker/firebase-validate-key.svg?branch=master)](https://travis-ci.org/bendrucker/firebase-validate-key)

> Validate that a string is a valid Firebase key

## Install

```sh
$ npm install --savefirebase-validate-key
```

## Usage

```js
var validate = require('firebase-validate-key')
validate('foo') // => true
validate('#foo') // => false
```

## API

#### `validate(key)` -> `boolean`

##### key

*Required*  
Type: `string`

False if the key is empty or is  `.`, `$`, `#`, `[`, `]`, or `/`. Otherwise `true`.

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