🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

wast-parser

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
w

wast-parser

wast parser

0.33.0
latest
78

Supply Chain Security

100

Vulnerability

83

Quality

77

Maintenance

100

License

Version published
Weekly downloads
8
-70.37%
Maintainers
1
Weekly downloads
 
Created
Issues
7

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

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