# kebab-hash

> Given an input string, convert to kebab-case and append a hash. Avoids kebab case collisions.

Latest version **0.1.2** (published 2018-05-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install kebab-hash
pnpm add kebab-hash
yarn add kebab-hash
bun add kebab-hash
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2018-05-23 |
| First published | 2018-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Callum Macdonald |
| Maintainers | chmac |
| Keywords | kebab, case, kebab, hash |

## Links

- npm: https://www.npmjs.com/package/kebab-hash
- Repository: https://github.com/GatsbyCentral/kebab-hash
- Homepage: https://github.com/GatsbyCentral/kebab-hash#readme
- Issues: https://github.com/GatsbyCentral/kebab-hash/issues
- npm.io page: https://npm.io/package/kebab-hash

## Dependencies (1)

- [lodash.kebabcase](https://npm.io/package/lodash.kebabcase.md) ^4.1.1

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 0.1.2 (latest) — 2018-05-23
- 0.1.1 — 2018-05-23
- 0.1.0 — 2018-05-23

## README

# kebab-hash

Given an input string, convert to kebab-case and append a hash. Avoids kebab
case collisions.

# Use Case

If you convert URLs to kebab case then `/foo-bar` and `/foo/bar` both become
`foo-bar`. `kebab-hash` solves this problem by appending a hash of the input to
the output string. So these two examples become `foo-bar-096` and `foo-bar-1df`
instead.

# Node only

This package is designed for use on the server (node) not in the browser. PRs
welcome.

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