nativescript-device-uuid
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

NativeScript UUID

This is a plugin for Nativescript that allows you to get a UUID (Universal Unique Identifier) for a device.

Uses SAMKeychain Cocoa Pod.

Installation

Run the following command from the root of your project:

yarn add nativescript-device-uuid
ns plugin add nativescript-device-uuid
npm install nativescript-device-uuid

Usage

JavaScript

  const nsUuid = require("nativescript-device-uuid");

  const uuid = nsUuid.getUUID();
  console.log(`The device UUID is ${uuid}`);

TypeScript

  import { getUUID } from 'nativescript-device-uuid';

  const uuid = getUUID();
  console.log(`The device UUID is ${uuid}`);

/nativescript-device-uuid/

    Package Sidebar

    Install

    npm i nativescript-device-uuid

    Weekly Downloads

    3

    Version

    1.0.0

    License

    Apache-2.0

    Unpacked Size

    14.4 kB

    Total Files

    11

    Last publish

    Collaborators

    • jay.dabo