# slug-generator

> Create URI slug in easy way. Supports serbian cyrilic and latin language.

Latest version **1.0.6** (published 2017-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install slug-generator
pnpm add slug-generator
yarn add slug-generator
bun add slug-generator
```

## 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.6 |
| Published | 2017-07-18 |
| First published | 2016-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Emerald Code |
| Maintainers | emeraldcode |
| Keywords | slug, slugify, url, generator, expressjs, nodejs, js, uri |

## Links

- npm: https://www.npmjs.com/package/slug-generator
- Repository: https://github.com/emerald-code/slug-generator
- Homepage: https://github.com/emerald-code/slug-generator#readme
- Issues: https://github.com/emerald-code/slug-generator/issues
- npm.io page: https://npm.io/package/slug-generator

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.6 (latest) — 2017-07-18
- 1.0.5 — 2017-07-06
- 1.0.4 — 2016-11-07
- 1.0.3 — 2016-11-07
- 1.0.2 — 2016-11-07
- 1.0.1 — 2016-11-04

## README

# slug-generator

This is vanilla javascript port of [node-slug](https://github.com/dodo/node-slug) so all credits goes to [dodo](https://github.com/dodo) and [simov](https://github.com/simov/slugify.git).

This script convert cyrilic to latin URI slug. 

```js
var slugify = require('slug-generator')

// add string to a function to create slug 
slugify('this is a string') // returns this-is-a-string

// if you want to change default separator(-) add 2nd parameter to function 
slugify('this is a string', '_') //returns this_is_a_string
```

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