Socket
Socket
Sign inDemoInstall

wast-parser

Package Overview
Dependencies
0
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    wast-parser

wast parser


Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Install size
306 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 01 Sep 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc