New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

js2wasm-cli

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js2wasm-cli

## Add .env variables

latest
npmnpm
Version
1.0.5
Version published
Maintainers
0
Created
Source

JS2WasmCli

Add .env variables

Copy the .env.sample to .env.

Update the JS2WASM_CLI_HOST variable

Global Usage (For using as a cli)

Install:

npm i -g js2wasm-cli

Use:

js2wasm-cli contracts build

This will build the contracts directory and output the wasm files into the build directory.

SDK Usage (For using as an sdk)

npm install js2wasm-cli

import { buildDir } from "js2wasm-cli";

const dirPath = "my/path/to/hooks/root/dir"
const outDir = "my/build/wasm/directory"
await buildDir(dirPath, outDir);

Development / Deployment

Build Repo

yarn run build

Build Executable Package

pkg .

Publish NPM Package

npm publish

FAQs

Package last updated on 30 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts