# util-identifier

> Get an identifier function to assist in generating classes, etc.

Latest version **1.0.2** (published 2016-11-08) · 0 weekly downloads

## Install

```sh
npm install util-identifier
pnpm add util-identifier
yarn add util-identifier
bun add util-identifier
```

## 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.2 |
| Published | 2016-11-08 |
| First published | 2016-10-24 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Simon Elvery |
| Maintainers | drzax |

## Links

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

## Recent versions

- 1.0.2 (latest) — 2016-11-08
- 1.0.1 — 2016-11-08
- 1.0.0 — 2016-10-24

## README

#util-identifier

Get an identifier function to assist in generating classes, etc.

```
var identifier = require('util-identifier')('MyThing');

identifier('component'); // 'MyThing-component'
identifier('component', 'state'); // 'MyThing-component--state'
identifier('component', 'state', '.'); // '.MyThing-component--state'
identifier('component', null, '.'); // '.MyThing-component'
```

Test
----

```
npm test
```

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