uuid-v4-wasm

0.5.0 • Public • Published

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))

/uuid-v4-wasm/

    Package Sidebar

    Install

    npm i uuid-v4-wasm

    Weekly Downloads

    17

    Version

    0.5.0

    License

    MIT

    Unpacked Size

    53.5 kB

    Total Files

    12

    Last publish

    Collaborators

    • tmtmtoo