Catalog npm
PACKAGE EXPLORERView in registry

@0xcarbon/dkls23-wasm

npm

Wasm bindings for [DKLs23](https://github.com/0xCarbon/DKLs23).

Versions collected1
Direct dependencies0From release 1.0.2
Last observed20 Oct, 22:44 UTC

README

Current package documentation

DKLs23-wasm

Wasm bindings for DKLs23.

Instructions for running locally

How to compile to web

  1. Compile the library using wasm:
wasm-pack build --target web

This command will generate a pkg folder in the root of the project.

  1. Enter the pkg folder and generate a symbolic link:
cd pkg && yarn link

This command will make a dkls23-wasm package available to use.

Example usage in a web project

  1. In a web project where you want to use the dkls23-wasm package, bind the the symbolic link to the project:
yarn link "dkls23-wasm"

This command will add the dkls23-wasm package to the project node_modules.

  1. Initialize the wasm module and make use of the package:
import init, { greet } from 'dkls23-wasm';

init().then(() => {
    greet();
});

Instructions for making a new release

  1. Compile the package:
wasm-pack build --target web --scope 0xCarbon
  1. Update the package.json version, repository and publishConfig. It should look something like this:
{
  "name": "@0xCarbon/dkls23-wasm",
  "version": "0.1.0",
  "repository": "https://github.com/0xCarbon/dkls23-wasm",
  "files": [
    "dkls23_wasm_bg.wasm",
    "dkls23_wasm.js",
    "dkls23_wasm.d.ts"
  ],
  "module": "dkls23_wasm.js",
  "types": "dkls23_wasm.d.ts",
  "sideEffects": false,
  "publishConfig": {
    "registry": "https://npm.pkg.github.com"
  }
}
  1. Login to npm github registry:
npm login --scope=@0xcarbon --registry=https://npm.pkg.github.com
  1. Enter the pkg folder and publish a new release:
cd pkg && npm publish --access restricted

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.2Registry latest6 May 20240

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0xcarbon/dkls23-wasm

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:44 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:f148b098cbb4582b0b32c94ded63dfdc919a97e3c86e15da92f4d2ce48823016