Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uuidjs

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uuidjs - npm Package Compare versions

Comparing version 4.2.9 to 4.2.10

8

package.json
{
"name": "uuidjs",
"version": "4.2.9",
"version": "4.2.10",
"title": "UUID.js",

@@ -44,5 +44,5 @@ "description": "RFC-compliant UUID Generator for JavaScript",

"devDependencies": {
"jsdoc": "^3.6.7",
"qunit": "^2.16.0",
"typescript": "^4.4.2"
"jsdoc": "^3.6.10",
"qunit": "^2.17.2",
"typescript": "^4.5.5"
},

@@ -49,0 +49,0 @@ "browser": {

@@ -1,6 +0,7 @@

# NAME
# UUID.js - RFC-compliant UUID Generator for JavaScript
UUID.js - RFC-compliant UUID Generator for JavaScript
[![npm](https://img.shields.io/npm/v/uuidjs)](https://www.npmjs.com/package/uuidjs)
[![License](https://img.shields.io/npm/l/uuidjs)](https://github.com/LiosK/UUID.js/blob/master/LICENSE.txt)
# SYNOPSIS
## Synopsis

@@ -21,3 +22,3 @@ ```html

// TypeScript
import UUID from 'uuidjs';
import UUID from "uuidjs";
let str: string = UUID.generate();

@@ -32,16 +33,26 @@ let obj: UUID = UUID.genV4();

# DESCRIPTION
## Description
UUID.js is a JavaScript/ECMAScript library to generate RFC 4122 compliant Universally Unique IDentifiers (UUIDs). This library supports both version 4 UUIDs (UUIDs from random numbers) and version 1 UUIDs (time-based UUIDs), and provides an object-oriented interface to print a generated or parsed UUID in a variety of forms.
UUID.js is a JavaScript/ECMAScript library to generate RFC 4122 compliant
Universally Unique IDentifiers (UUIDs). This library supports both version 4
UUIDs (UUIDs from random numbers) and version 1 UUIDs (time-based UUIDs), and
provides an object-oriented interface to print a generated or parsed UUID in a
variety of forms.
# FEATURES
## Features
* Generates version 4 UUIDs (UUIDs from random numbers) and version 1 UUIDs (time-based UUIDs)
* Provides an object-oriented interface to print various string representations of a generated or parsed UUID
* Utilizes a cryptographically secure pseudo-random number generator if available, whereas falling back to `Math.random()` otherwise
* Appends extra random bits to compensate for the lower timestamp resolution of JavaScript than that required for version 1 UUIDs
* Comes with a lot of test cases including format checks and statistical tests to maintain a high-quality code base
* Supports old browsers as well as modern browser and server environments, as kept compatible with ECMAScript 3rd edition
- Generates version 4 UUIDs (UUIDs from random numbers) and version 1 UUIDs
(time-based UUIDs)
- Provides an object-oriented interface to print various string representations
of a generated or parsed UUID
- Utilizes a cryptographically secure pseudo-random number generator if
available, whereas falling back to `Math.random()` otherwise
- Appends extra random bits to compensate for the lower timestamp resolution of
JavaScript than that required for version 1 UUIDs
- Comes with a lot of test cases including format checks and statistical tests
to maintain a high-quality code base
- Supports old browsers as well as modern browser and server environments, as
kept compatible with ECMAScript 3rd edition
# INSTALL
## Install

@@ -62,3 +73,3 @@ Download `src/uuid.js` or call `npm install uuidjs`.

# USAGE EXAMPLES
## Usage Examples

@@ -72,3 +83,4 @@ `UUID.generate()` returns a version 4 UUID as a hexadecimal string.

`UUID.genV4()`, `UUID.genV1()`, and `UUID.parse()` return a UUID object that has various fields and methods.
`UUID.genV4()`, `UUID.genV1()`, and `UUID.parse()` return a UUID object that has
various fields and methods.

@@ -115,3 +127,4 @@ ```javascript

UUID.js supports the so-called noConflict mode to work around namespace conflicts.
UUID.js supports the so-called noConflict mode to work around namespace
conflicts.

@@ -125,28 +138,27 @@ ```javascript

# LICENSE
## License
Copyright (c) 2010-2021 LiosK
Copyright (c) 2010-2022 LiosK
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
# AUTHOR
## Author
LiosK <contact@mail.liosk.net>
# SEE ALSO
## See Also
* [RFC 4122](https://www.ietf.org/rfc/rfc4122.txt)
* [GitHub Repository](https://github.com/LiosK/UUID.js)
* [npm Package](https://www.npmjs.com/package/uuidjs)
* [API Documentation](https://liosk.github.io/UUID.js/docs/)
* [Run test cases on your browser](https://liosk.github.io/UUID.js/test/browser.html)
- [RFC 4122](https://www.ietf.org/rfc/rfc4122.txt)
- [GitHub Repository](https://github.com/LiosK/UUID.js)
- [npm Package](https://www.npmjs.com/package/uuidjs)
- [API Documentation](https://liosk.github.io/UUID.js/docs/)
- [Run test cases on your browser](https://liosk.github.io/UUID.js/test/browser.html)

@@ -6,4 +6,4 @@ /**

* @author LiosK
* @version v4.2.9
* @license Apache License 2.0: Copyright (c) 2010-2021 LiosK
* @version v4.2.10
* @license Apache License 2.0: Copyright (c) 2010-2022 LiosK
*/

@@ -10,0 +10,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc