0.5.0 • Published 5 years ago

uuid-v4-wasm v0.5.0

Weekly downloads
10
License
MIT
Repository
github
Last release
5 years ago

uuid-v4-wasm CircleCI

An uuid(v4) generator library with WebAssembly.

  • This library supports both typescript and flowtype.
  • This library supports both node.js and browser.

Install

$ npm install uuid-v4-wasm

node.js

Usage

const wasm = require('uuid-v4-wasm')
const uuid = wasm.uuid()
console.log(uuid)

browser

Requirements

  • webpack >=4

Note: add .wasm extension to webpack config file

  resolve: {
    extensions: ['.js', '.wasm'],

Usage

import('uuid-v4-wasm')
    .then(wasm => wasm.uuid())
    .then(uuid => console.log(uuid))