You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
489 B

4 years ago
  1. # @webassemblyjs/wasm-parser
  2. > WebAssembly binary format parser
  3. ## Installation
  4. ```sh
  5. yarn add @webassemblyjs/wasm-parser
  6. ```
  7. ## Usage
  8. ```js
  9. import { decode } from "@webassemblyjs/wasm-parser";
  10. const decoderOpts = {};
  11. const ast = decode(binary, decoderOpts);
  12. ```
  13. ### Decoder options
  14. - `dump`: print dump information while decoding (default `false`)
  15. - `ignoreCodeSection`: ignore the code section (default `false`)
  16. - `ignoreDataSection`: ignore the data section (default `false`)