# nativescript-unique-identifier

> Nativescript Plugin allow to acces UUID.

Latest version **1.0.0** (published 2020-07-27) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install nativescript-unique-identifier
pnpm add nativescript-unique-identifier
yarn add nativescript-unique-identifier
bun add nativescript-unique-identifier
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-07-27 |
| First published | 2020-07-27 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sefercan Aydaş |
| Maintainers | sfrcnayds |
| Keywords | NativeScript, JavaScript, Android, iOS |

## Links

- npm: https://www.npmjs.com/package/nativescript-unique-identifier
- Repository: https://github.com/sfrcnayds/nativescript-unique-identifier
- Issues: https://github.com/sfrcnayds/nativescript-unique-identifier/issues
- npm.io page: https://npm.io/package/nativescript-unique-identifier

## 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

- 1.0.0 (latest) — 2020-07-27

## README

# NativeScript UUID Plugin ![apple](https://cdn3.iconfinder.com/data/icons/picons-social/57/16-apple-32.png) ![android](https://cdn4.iconfinder.com/data/icons/logos-3/228/android-32.png)


# Usage

See this example for Angular:
```typescript
import { Component, OnInit } from "@angular/core";
import {UniqueIdentifier} from "nativescript-unique-identifier"

@Component({
  selector: "ns-main",
  template: "<page-router-outlet></page-router-outlet>"
})
export class AppComponent {
    constructor() {
    } 
    
    ngOnInit(){
        let uuid = new UniqueIdentifier();
        console.log(uuid.getUUID());
     }
}

```
And for pure NativeScript:
```javascript
var plugin = require("nativescript-unique-identifier").UniqueIdentifier;
console.log(plugin.getUUID());

## Installation

```bash
$ tns plugin add nativescript-unique-identifier
```

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