New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

js-wasm-tools

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-wasm-tools - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "js-wasm-tools",
"version": "1.0.0",
"version": "1.0.1",
"author": "Dominic Elm",

@@ -5,0 +5,0 @@ "description": "JavaScript version of wasm-tools, low level tooling for WebAssembly in Rust",

@@ -5,4 +5,2 @@ # js-wasm-tools

This package is meant to be used on the Web.
## Install

@@ -14,2 +12,6 @@

## Playground
You can try it out live on [StackBlitz.com](https://stackblitz.com/edit/js-wasm-tools?file=index.js).
## Usage

@@ -30,2 +32,23 @@

With Node.js:
```js
import initWasmTools, * as wasmTools from 'js-wasm-tools';
import fs from 'node:fs';
import path from 'node:path';
import * as url from 'url';
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
const bytes = fs.readFileSync(path.join(__dirname, 'node_modules/js-wasm-tools/dist/js_wasm_tools_bg.wasm'));
await initWasmTools(bytes);
const source = '(module)';
const binary = wasmTools.parseWat(source);
console.log(binary);
```
## API

@@ -32,0 +55,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc