# llguid

> Generate Guid by random

Latest version **0.0.1** (published 2015-09-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install llguid
pnpm add llguid
yarn add llguid
bun add llguid
```

## 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.0.1 |
| Published | 2015-09-22 |
| First published | 2015-09-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Lession Levy |
| Maintainers | lession711 |
| Keywords | guid, llguid, uuid |

## Links

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

## 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.0.1 (latest) — 2015-09-22

## README

nodejs-llGuid
=============

This is used in nodejs generated Guid by random.

This module checked your system, support on Windows, Linux, Mac OS X platform

How to use it
-------------

##Installation
You can install with `npm`:
``` bash
$ npm install llguid
```
i'm publish in npm unsuccessfully, please download and unzip this package and change folder name with `llguid`.
Finally, put this folder into your project's node_modules

##Get a Guid object from nodejs
``` javascript
var llGuid = require('llguid');
var myGuid = llGuid.newGuid(); // -> Create new Guid
console.log(myGuid.toString()); // -> The console print like this "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
```
## Methods
### The Constructors
``` javascript
    var emptyGuid = new llGuid(); // -> Create a empty Guid like `llGuid.empty()`;
    var myGuid = new llGuid('A4F1A501-D421-4621-BB51-DE7E8857BA09'); //Create a known Guid from String
```
### Object methods
``` javascript
    var myGuid1 = llGuid.newGuid(); // -> Create a new Guid
    var myGuid2 = llGuid.newGuid(); // -> Create a new Guid again
    myGuid1.equals(myGuid2); // -> Check of these two Guid object are equal
    var bytes = myGuid1.toArray(); // -> get a byte array from this `myGuid1`, length of 16, like this `[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]`
    var guidStr = myGuid2.toString(); // -> get a Guid string from this `myGuid2`, length of 36, like this '00000000-0000-0000-0000-000000000000'
```
### Static methods
``` javascript
    var emptyGuid = llGuid.empty(); // -> Create a empty Guid, like this '00000000-0000-0000-0000-000000000000'
    var myGuid = llGuid.parse('A4F1A501-D421-4621-BB51-DE7E8857BA09'); // -> Transform a Guid object from guid string, like `new Guid('guid string')`
    var isGuid = llGuid.isGuid('A4F1A501-D421-4621-BB51-DE7E8857BA09'); // -> Check a `string` or a `llGuid` object is Guid or another?
    var isEqueal = llGuid.equals(emptyGuid, myGuid); //Check `emptyGuid` and `myGuid` is equal;
        //remark: llGuid.equals method`s two parameters must be llGuid`s object, another return false
```

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