
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@webassemblyjs/ast
Advanced tools
AST utils for webassemblyjs
yarn add @webassemblyjs/ast
import { traverse } from "@webassemblyjs/ast";
traverse(ast, {
Module(path) {
console.log(path.node);
}
});
import { signatures } from "@webassemblyjs/ast";
console.log(signatures);
findParent: NodeLocatorreplaceWith: Node => voidremove: () => voidinsertBefore: Node => voidinsertAfter: Node => voidstop: () => voidmodule(id, fields, metadata)moduleMetadata(sections, functionNames, localNames)moduleNameMetadata(value)functionNameMetadata(value, index)localNameMetadata(value, localIndex, functionIndex)binaryModule(id, blob)quoteModule(id, string)sectionMetadata(section, startOffset, size, vectorOfSize)loopInstruction(label, resulttype, instr)instruction(id, args, namedArgs)objectInstruction(id, object, args, namedArgs)ifInstruction(testLabel, test, result, consequent, alternate)stringLiteral(value)numberLiteralFromRaw(value, raw)longNumberLiteral(value, raw)floatLiteral(value, nan, inf, raw)elem(table, offset, funcs)indexInFuncSection(index)valtypeLiteral(name)typeInstruction(id, functype)start(index)globalType(valtype, mutability)leadingComment(value)blockComment(value)data(memoryIndex, offset, init)global(globalType, init, name)table(elementType, limits, name, elements)memory(limits, id)funcImportDescr(id, signature)moduleImport(module, name, descr)moduleExportDescr(exportType, id)moduleExport(name, descr)limit(min, max)signature(params, results)program(body)identifier(value, raw)blockInstruction(label, instr, result)callInstruction(index, instrArgs)callIndirectInstruction(signature, intrs)byteArray(values)func(name, signature, body, isExternal, metadata)isModuleisModuleMetadataisModuleNameMetadataisFunctionNameMetadataisLocalNameMetadataisBinaryModuleisQuoteModuleisSectionMetadataisLoopInstructionisInstructionisObjectInstructionisIfInstructionisStringLiteralisNumberLiteralisLongNumberLiteralisFloatLiteralisElemisIndexInFuncSectionisValtypeLiteralisTypeInstructionisStartisGlobalTypeisLeadingCommentisBlockCommentisDataisGlobalisTableisMemoryisFuncImportDescrisModuleImportisModuleExportDescrisModuleExportisLimitisSignatureisProgramisIdentifierisBlockInstructionisCallInstructionisCallIndirectInstructionisByteArrayisFuncassertModuleassertModuleMetadataassertModuleNameMetadataassertFunctionNameMetadataassertLocalNameMetadataassertBinaryModuleassertQuoteModuleassertSectionMetadataassertLoopInstructionassertInstructionassertObjectInstructionassertIfInstructionassertStringLiteralassertNumberLiteralassertLongNumberLiteralassertFloatLiteralassertElemassertIndexInFuncSectionassertValtypeLiteralassertTypeInstructionassertStartassertGlobalTypeassertLeadingCommentassertBlockCommentassertDataassertGlobalassertTableassertMemoryassertFuncImportDescrassertModuleImportassertModuleExportDescrassertModuleExportassertLimitassertSignatureassertProgramassertIdentifierassertBlockInstructionassertCallInstructionassertCallIndirectInstructionassertByteArrayassertFuncThe wast-parser package is similar to @webassemblyjs/ast in that it can parse WebAssembly text format (WAT) into an AST. However, it focuses on the text format rather than the binary format and does not provide binary generation capabilities.
Binaryen is a compiler and toolchain infrastructure library for WebAssembly, written in C++. It has bindings for JavaScript and provides similar functionalities such as parsing, optimization, and generation of WebAssembly code. Compared to @webassemblyjs/ast, Binaryen offers a broader range of optimization tools and is implemented in a different programming language.
WABT (The WebAssembly Binary Toolkit) is a suite of tools for WebAssembly, including a decoder, an interpreter, and a binary format validator. It is similar to @webassemblyjs/ast in that it allows manipulation of WebAssembly binaries but is a standalone toolkit rather than an npm package.
FAQs
AST utils for webassemblyjs
The npm package @webassemblyjs/ast receives a total of 35,531,154 weekly downloads. As such, @webassemblyjs/ast popularity was classified as popular.
We found that @webassemblyjs/ast demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.