# ember-simple-uuid

> Direct client-side UUID generation

Latest version **0.1.4** (published 2016-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-simple-uuid
pnpm add ember-simple-uuid
yarn add ember-simple-uuid
bun add ember-simple-uuid
```

## 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.4 |
| Published | 2016-02-21 |
| First published | 2016-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.1.x |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Brian Sipple |
| Maintainers | bsipple |
| Keywords | ember-addon, ember uuid, unique id, ember unique id, ember node uuid, client unique id, ember client uuid |

## Links

- npm: https://www.npmjs.com/package/ember-simple-uuid
- Repository: https://github.com/BrianSipple/ember-simple-uuid
- Homepage: https://github.com/BrianSipple/ember-simple-uuid#readme
- Issues: https://github.com/BrianSipple/ember-simple-uuid/issues
- npm.io page: https://npm.io/package/ember-simple-uuid

## Dependencies (1)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^5.1.5

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2016-02-21
- 0.1.3 — 2016-02-21
- 0.1.2 — 2016-02-20
- 0.1.1 — 2016-02-20
- 0.1.0 — 2016-02-20

## README

# ember-simple-uuid

[![npm version](https://badge.fury.io/js/ember-simple-uuid.svg)](https://badge.fury.io/js/ember-simple-uuid) [![Build Status](https://travis-ci.org/BrianSipple/ember-simple-uuid.svg?branch=master)](https://travis-ci.org/BrianSipple/ember-simple-uuid) [![Ember Observer Score](http://emberobserver.com/badges/ember-simple-uuid.svg)](http://emberobserver.com/addons/ember-simple-uuid)


_Direct client-side UUID generation that exposes [node-uuid](https://github.com/broofa/node-uuid)'s `uuid.v4` implementation as an importable module_.

Original credit for this addon's approach is due to [ember-cli-uuid](https://github.com/thaume/ember-cli-uuid). `ember-simple-uuid` wraps the same function -- but without any dependency on `ember-data` or initializer decoration of `DS.Adapter`. Those wanting such extra behavior may well want to give `ember-cli-uuid` a look.

`ember-simple-uuid` also gathers any arguments passed to its function and spreads them to fit the `uuid.v4` function signature. This enables the configuration options documented [here](https://github.com/broofa/node-uuid#uuidv4options--buffer--offset).


## Usage

### Straight up:
```
import uuid from 'ember-simple-uuid';

const babyName = uuid();

// babyName >> 'ad84fb10-19c4-01e1-2b0d-7b25c4ea062'

```

### With arguments -- for example, generating two IDs in a single buffer:
```
import uuid from 'ember-simple-uuid';

const myDigits = new Array(32);

uuid(null, myDigits, 0);
uuid(null, myDigits, 16);

```

## Building Locally

### Installation

* `git clone` this repository
* `npm install`
* `bower install`

### Running

* `ember server`
* Visit your app at http://localhost:4200.

### Running Tests

* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)
* `ember test`
* `ember test --server`

### Building

* `ember build`

For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).

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