# firebasepath

> "os.path" equivalent for Firebase users

Latest version **1.0.3** (published 2017-02-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install firebasepath
pnpm add firebasepath
yarn add firebasepath
bun add firebasepath
```

## 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.3 |
| Published | 2017-02-17 |
| First published | 2017-02-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | chinwo |
| Maintainers | chinwo |
| Keywords | firebase, path, firebase-path, firebase--path |

## Links

- npm: https://www.npmjs.com/package/firebasepath
- npm.io page: https://npm.io/package/firebasepath

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2017-02-17
- 1.0.2 — 2017-02-16
- 1.0.1 — 2017-02-16
- 1.0.0 — 2017-02-16

## README

#### Features
+ No dependency!
+ Subdomain name support e.g. "a.goodexample.com"
+ Hyphenated domain name support e.g. "good-example.com"

#### Install
> $ node install --save firebasepath

#### Usage
```js
var fbsPath = require('firebasepath');

fbsPath.escape('example.com'); // -> example-com
fbsPath.unescape('example-com'); // -> example.com
```
#### Test
> $ node test

```js
                Domain Name                     Firebase Path
escaped:        'token-mail.io'         ->      'token-mail-io'
escaped:        'codeandpush.com'       ->      'codeandpush-com'
escaped:        'stance.com.ng'         ->      'stance-com-ng'
unescaped:      'token-mail.io'         <-      'token--mail-io'
unescaped:      'codeandpush.com'       <-      'codeandpush-com'
unescaped:      'stance.com.ng'         <-      'stance-com-ng'
```

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