# to-id

> Normalises strings for comparison or usage as IDs

Latest version **2.0.0** (published 2019-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install to-id
pnpm add to-id
yarn add to-id
bun add to-id
```

## 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.0 |
| Published | 2019-04-26 |
| First published | 2015-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gregor Martynus |
| Maintainers | gr2m |

## Links

- npm: https://www.npmjs.com/package/to-id
- Repository: https://github.com/gr2m/to-id
- Homepage: http://gr2m.github.io/to-id
- Issues: https://github.com/gr2m/to-id/issues
- npm.io page: https://npm.io/package/to-id

## Recent versions

- 2.0.0 (latest) — 2019-04-26
- 1.0.5 — 2015-07-01
- 1.0.4 — 2015-06-09
- 1.0.3 — 2015-05-19
- 1.0.2 — 2015-05-18
- 1.0.1 — 2015-05-17
- 1.0.0 — 2015-05-17

## README

# to-id

> Normalises strings for comparison or usage as IDs

[![Build Status](https://travis-ci.org/gr2m/to-id.svg?branch=master)](https://travis-ci.org/gr2m/to-id)
[![Coverage Status](https://codecov.io/gh/gr2m/to-id/branch/master/graph/badge.svg)](https://codecov.io/gh/gr2m/to-id)
[![Greenkeeper badge](https://badges.greenkeeper.io/gr2m/to-id.svg)](https://greenkeeper.io/)

## Usage

```js
toId('Inside a $34 smartphone') // inside-a-34-smartphone
toId('Kore: a fast web server') // kore-a-fast-webserver
toId(' L. (YC S15) - Is Hiring ') // l-yc-s15-is-hiring
toId('안_형_준') // 안-형-준
```

## Installation

You can download [to-id.js](https://github.com/gr2m/tree/master/to-id.js)
and add it to your site using `<script src="to-id.js"></script>`

Or install using [bower](http://bower.io/) for usage in browser:

```
bower install --save to-id
```

Install using [npm](https://npmjs.org/) for node.js or browserify:

```
npm install --save to-id
```

## Test

```
npm test
```

Tests are run with [testmate](https://github.com/gr2m/testmate).
In order to run them in a browser or through saucelabs,
set `TEST_CLIENT` accordingly, for example

```
TEST_CLIENT=selenium:firefox npm test
```

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