Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ganeshkbhat/gouuidjs
get the uuid package to get uuid v6, v7 versions of uuid using gouuidjs - wasm port of google uuid package
https://github.com/ganeshkbhat/gouuidjs
golang nodejs rfc4412 uuid v6 v7 wasm
Last synced: 23 days ago
JSON representation
get the uuid package to get uuid v6, v7 versions of uuid using gouuidjs - wasm port of google uuid package
- Host: GitHub
- URL: https://github.com/ganeshkbhat/gouuidjs
- Owner: ganeshkbhat
- License: mit
- Created: 2024-02-19T16:56:57.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-20T08:57:43.000Z (11 months ago)
- Last Synced: 2024-12-03T09:24:24.199Z (about 1 month ago)
- Topics: golang, nodejs, rfc4412, uuid, v6, v7, wasm
- Language: JavaScript
- Homepage:
- Size: 16.3 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### gouuidjs
get the uuid package to get uuid v6, v7 versions of uuid using gouuidjs - wasm port of google uuid packagethe demos can be found in the folder [demos](https://github.com/ganeshkbhat/gouuidjs/tree/main/demos)
### USAGE
```
const fs = require('node:fs');
const wasmBuffer = fs.readFileSync('.node_modules/gouuid/gouuid.wasm');
WebAssembly.instantiate(wasmBuffer).then(wasmModule => {
const go = wasmModule.instance.exports;
const uuid = go.GetUUID(["", "V7"]);
console.log(uuid);
});
``````
import { GetUUID } from '../gouuid.wasm';
console.log(GetUUID([".", "."]))
``````
import * as go from '../gouuid.wasm';
console.log(go.GetUUID([".", "."]))
```### SOURCE
Direct build od UUID definition implementations from [github.com/google/uuid](https://github.com/google/uuid)