Socket
Book a DemoInstallSign in
Socket

wast-parser

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wast-parser

wast parser

latest
Source
npmnpm
Version
0.33.0
Version published
Weekly downloads
17
-88.19%
Maintainers
1
Weekly downloads
 
Created
Source

WebAssembly parser

NPM version Travis appVeyor

Takes WebAssembly S-expression (WAST) string and returns abstract syntax tree (AST).

Inspired by esprima

Use

Node.js

npm i wast-parser --save
var parser = require('wast-parser');

CLI

First install globally npm i wast-parser -g
then invoke with a wast file wast-parser <path/to/wast/file> > parsed_wast.json

Functions

.parse()

var ast = parser.parse('(module)');

Testing

npm test

Generating tests

npm run testgen

License

MIT LICENSE.

Keywords

wasm

FAQs

Package last updated on 01 Sep 2018

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