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

xksuid

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xksuid - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

10

package.json
{
"name": "xksuid",
"version": "0.0.1",
"version": "0.0.2",
"description": "Extended K-Sortable UID for browser & NodeJS 16+",
"type": "module",
"main": "./src/index.js",
"homepage": "https://github.com/ValeriaVG/xksuid#readme",
"repository": {
"type": "git",
"url": "git@github.com:ValeriaVG/xksuid.git"
},
"bugs": {
"url": "https://github.com/ValeriaVG/xksuid/issues"
},
"scripts": {

@@ -8,0 +16,0 @@ "test": "node tests/index.js",

@@ -32,3 +32,40 @@ # Extended K-Sortable UID

## Usage
API:
```js
generate() // ASC KSUID
generate(true) // DESC xKSUID
generate(true,new Date('2022-01-01').getTime()) // DESC xKSUID with custom timestamp
```
Via CDN:
```html
<script>
import {generate} from 'https://cdn.jsdelivr.net/npm/xksuid@0.0.1/src/index.js'
</script>
```
Via NPM:
```sh
npm install xksuid
```
For browser:
```js
import {generate} from 'xksuid'
```
For NodeJS ESM:
```js
import {generate} from 'xksuid/src/index.node.mjs'
```
For NodeJS CommonJS:
```js
const {generate} = await import('xksuid/src/index.node.mjs')
```
## Benchmark

@@ -35,0 +72,0 @@ ```sh

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