{"_id":"wasm-tools","_rev":"1484100","name":"wasm-tools","description":"A collection of useful tools for working with WASM/WAT in JavaScript","dist-tags":{"latest":"0.2.1"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@hey.com"}],"time":{"modified":"2026-09-22T11:24:34.000Z","created":"2021-10-22T08:58:15.596Z","0.2.1":"2022-08-02T09:40:08.845Z","0.2.0":"2021-10-25T07:48:22.043Z","0.1.1":"2021-10-22T10:03:25.010Z","0.1.0":"2021-10-22T09:23:16.244Z","0.0.1":"2021-10-22T09:02:08.905Z","0.0.0":"2021-10-22T08:58:15.596Z"},"users":{},"author":{"name":"Kasper Isager Dalsgarð","email":"kasper@funktionel.co"},"repository":{"url":"git+https://github.com/hypercore-skunkworks/wasm-tools.git","type":"git"},"versions":{"0.2.1":{"name":"wasm-tools","version":"0.2.1","author":{"name":"Kasper Isager Dalsgarð","email":"kasper@funktionel.co"},"license":"ISC","_id":"wasm-tools@0.2.1","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@hey.com"}],"homepage":"https://github.com/hypercore-skunkworks/wasm-tools#readme","bugs":{"url":"https://github.com/hypercore-skunkworks/wasm-tools/issues"},"bin":{"wat-to-js":"bin/wat-to-js.js","wasm-to-js":"bin/wasm-to-js.js","wasm-to-wat":"bin/wasm-to-wat.js","wat-to-wasm":"bin/wat-to-wasm.js"},"dist":{"shasum":"2f35734b01a8768d15c9b0bd4d6a265e97a6f9c7","tarball":"http://registry-npm.ywwl.com/wasm-tools/download/wasm-tools-0.2.1.tgz","fileCount":12,"integrity":"sha512-CzNT2/3yIMLVWwQZocs+9ARdy3UijtHMzWwREKNFceGHvJHOv/XXyMG1Eelv4itfQmnQpkeWdvsjEhs58hzwmQ==","signatures":[{"sig":"MEUCIQDwTkAuaItQXYLWtYGXkwaOj41yv2TGD76U3shMG7DmDQIgDiChODUVQqSdvB0V7mi4L6wGi9rr9wXsJcXaPQ4y38A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6PD4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpdWhAAkNoKJReYlwBHXsHmmhgzI3YI6nzjctCpd+TQEQOkTvSckSPa\r\ned8EfezzoWUpORSzfR7aIpabf/d9laU1y3z7UfuLZWaYAb77tYEX+GZNO43C\r\nbzijbNQGaxHdwK/YLl3x2OyYaN867bMMUcIXtiaOnDDFpHJmdyvSADTRg1OO\r\ne8uTBiEfbG/OvBPFPbhxQl3nQvYiZ12c1j0gyNN9YKZ4Fy0bkKdOMMEiApWg\r\nGUupIt4IwYYSJa45GrSrCUw+Br81dqoej2CwxLka2JZ+v+xGhI/IF1Kw4PPv\r\nBXmz005GCnA4YRE4CVy1Ft5fmbOD7upf9WXFNAXWPw+OaAnB6KsWWn8aQarh\r\nPpWvbHlJ/cwqS4H79T4qsCZfG3eSmiijae4/sAvPveys4msD7vAE2Ejnnw21\r\ntrv6EscNFBY6Bra9JrGoOADOH7CN6lYLeaGFLRFhryhBLq57d0OJCpSNaV0s\r\nxwKUYtHJLa+xwXGuMHBZI1VVVusqaxa8CIkg9OUGoUASNvdxFHrZplaIo2A1\r\noLrgcO9f9EarOswdYmJ1jlJgyYXQgGy3ZnacSRofIFd3o+CpRyRlquorPT1/\r\nuslafo7OifSKlW2rvNc/mkXAEuQW7pcmc8CpTnqJOSg7NqX1NKHaQq48BmyF\r\n0jkMbA4sU2ecDZaE80QuYH7zppEHK9gLTNU=\r\n=Dzyf\r\n-----END PGP SIGNATURE-----\r\n","size":3111,"noattachment":false,"key":"/wasm-tools/-/wasm-tools-0.2.1.tgz"},"main":"index.js","gitHead":"7bbb27140b358068c88093fd34812326cd5a8d43","scripts":{"test":"standard && brittle test/*.mjs"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"repository":{"url":"git+https://github.com/hypercore-skunkworks/wasm-tools.git","type":"git"},"_npmVersion":"8.12.1","description":"A collection of useful tools for working with WASM/WAT in JavaScript","directories":{},"_nodeVersion":"18.4.0","dependencies":{"wabt":"^1.0.24","esbuild":"^0.14.51","commander":"^8.3.0"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^1.3.5","standard":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/wasm-tools_0.2.1_1659433208681_0.9221057163441961","host":"s3://npm-registry-packages"},"publish_time":1659433208845,"_cnpm_publish_time":1659433208845},"0.2.0":{"name":"wasm-tools","version":"0.2.0","author":{"name":"Kasper Isager Dalsgarð","email":"kasper@funktionel.co"},"license":"ISC","_id":"wasm-tools@0.2.0","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@gmail.com"}],"homepage":"https://github.com/hypercore-skunkworks/wasm-tools#readme","bugs":{"url":"https://github.com/hypercore-skunkworks/wasm-tools/issues"},"bin":{"wat-to-js":"bin/wat-to-js.js","wasm-to-js":"bin/wasm-to-js.js","wasm-to-wat":"bin/wasm-to-wat.js","wat-to-wasm":"bin/wat-to-wasm.js"},"dist":{"shasum":"e48d9bf5e87b15cf198a89ae2d4ce283d68997e5","tarball":"http://registry-npm.ywwl.com/wasm-tools/download/wasm-tools-0.2.0.tgz","fileCount":12,"integrity":"sha512-hs5xi9MVDgmVhbHEvpDqtq0vTrM059TCv5TjG7LmYqRGVDcC5d4KNzTa2QFNPFoHRSBTCWC9X+N5L9jFLdV0Bw==","signatures":[{"sig":"MEUCIGK0QM6Oq308rTzE7+0pp4tvh1+BedzMhVELYL6ddO+TAiEAmi9iwMrS5EN4dOCDOxJq0NeXBvwRm4WXTXw7EOiAm68=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3A2ECRA9TVsSAnZWagAAp0MP/jS2AP04BKjDGlQ7wOZ+\nrGhk/uj+ANT6w+qDoOGMC+tbjM6fnPl/R3YIOjb3Z9BwYjXZV3LkRe6CZDRq\n6KdJ6HdM2G/lM7QtZRhAZXWLm9ks4ToqcLPLlurs5zdN6b+ONE5W/ouXDmlo\nR2sO/2MU4rla3dGgb6ZAWv7AGQkfSqZcnQK4XFfZdVnK26b9SiV6G85k38mR\nf6YyxZH1HQdGvjqTaNsz9Pl7Pmz8R2iEnQHNRHvZLQNyOvzWcHAZYG3ZCfFE\nBkCxnPhzenRsAy3lGG16lM+VKrlT8MA1gtB9PKNQZpOIKMV1Yq3oRPAe5iQZ\nmkc0n3WjlsqtMwi+hu8Ul6SilXpcCBlctF7uxSiU+PsiGoUudT0CB+wkpj/9\nRvA5UJQi7gkqRUhTFsGtgm3Jd6fE8cPZ6fA32LIrSg0RjYlv/LqMz1ZsQxPn\npfXaQeNhQ1g5kttbadAnK2wFE7RFdK7dBjjYiKFGaPkecdF3I6ikozutMkd5\nuxtFGvLCWhJFfdIWnSNY4Sl7dSCkoVXiTdSFugzMsFZuUnLoC1QopErUgFcf\n7hNFXzvna71aEMkA0QdiBHJ0hY3+o8rof2bfrG/mhXsLVRgPIkCuvqryHUre\nKTEV8CDe3cG1WNmpmBCu0ftAafh45alqq9TXn8tGVW8WjuDqZNt2XNWpzW6+\nfY6+\r\n=4Ca6\r\n-----END PGP SIGNATURE-----\r\n","size":3107,"noattachment":false,"key":"/wasm-tools/-/wasm-tools-0.2.0.tgz"},"main":"index.js","gitHead":"e83ad0f1eaf7416a3198cdbee1a4dc0cf22a5fa5","scripts":{"test":"standard && brittle test/*.mjs"},"_npmUser":{"name":"kasperisager","email":"kasperisager@gmail.com"},"repository":{"url":"git+https://github.com/hypercore-skunkworks/wasm-tools.git","type":"git"},"_npmVersion":"8.0.0","description":"A collection of useful tools for working with WASM/WAT in JavaScript","directories":{},"_nodeVersion":"16.11.1","dependencies":{"wabt":"^1.0.24","esbuild":"^0.13.8","commander":"^8.3.0"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^1.3.5","standard":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/wasm-tools_0.2.0_1635148101945_0.4017659755028167","host":"s3://npm-registry-packages"},"publish_time":1635148102043,"_cnpm_publish_time":1635148102043},"0.1.1":{"name":"wasm-tools","version":"0.1.1","author":{"name":"Kasper Isager Dalsgarð","email":"kasper@funktionel.co"},"license":"ISC","_id":"wasm-tools@0.1.1","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@gmail.com"}],"homepage":"https://github.com/hypercore-skunkworks/wasm-tools#readme","bugs":{"url":"https://github.com/hypercore-skunkworks/wasm-tools/issues"},"bin":{"wat-to-js":"bin/wat-to-js.js","wasm-to-js":"bin/wasm-to-js.js","wasm-to-wat":"bin/wasm-to-wat.js","wat-to-wasm":"bin/wat-to-wasm.js"},"dist":{"shasum":"a4139e1b2d708f5dfff86c5f8ee8f40e2722f81c","tarball":"http://registry-npm.ywwl.com/wasm-tools/download/wasm-tools-0.1.1.tgz","fileCount":12,"integrity":"sha512-MIp5WEdAtQU0u6kiKFx+nTFOAk8lCjgcU03RbqK8vsydanG3tIS4/ZS46euv76L4ffjIbxE04rQdD42iTFdpHA==","signatures":[{"sig":"MEUCIQDWBXHdyGimKqAKUjIiyBXEAlRtJ3MIiKqw/kDoQkVi4QIgAzaGMTpfuLitVhQEdHo+zfoJGXeka7iVtWaPta0EVfQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8255,"size":2916,"noattachment":false,"key":"/wasm-tools/-/wasm-tools-0.1.1.tgz"},"main":"index.js","gitHead":"5e3ada0111680b831cdfc65b4549477463aa7128","scripts":{"test":"standard && brittle test/*.mjs"},"_npmUser":{"name":"kasperisager","email":"kasperisager@gmail.com"},"repository":{"url":"git+https://github.com/hypercore-skunkworks/wasm-tools.git","type":"git"},"_npmVersion":"8.0.0","description":"A collection of useful tools for working with WASM/WAT in JavaScript","directories":{},"_nodeVersion":"16.11.1","dependencies":{"b4a":"^1.0.0","wabt":"^1.0.24","esbuild":"^0.13.8","commander":"^8.3.0"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^1.3.5","standard":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/wasm-tools_0.1.1_1634897004790_0.7235404940191124","host":"s3://npm-registry-packages"},"publish_time":1634897005010,"_cnpm_publish_time":1634897005010},"0.1.0":{"name":"wasm-tools","version":"0.1.0","author":{"name":"Kasper Isager Dalsgarð","email":"kasper@funktionel.co"},"license":"ISC","_id":"wasm-tools@0.1.0","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@gmail.com"}],"homepage":"https://github.com/hypercore-skunkworks/wasm-tools#readme","bugs":{"url":"https://github.com/hypercore-skunkworks/wasm-tools/issues"},"bin":{"wat-to-js":"bin/wat-to-js.js","wasm-to-js":"bin/wasm-to-js.js","wasm-to-wat":"bin/wasm-to-wat.js","wat-to-wasm":"bin/wat-to-wasm.js"},"dist":{"shasum":"e1502187f9278979bbb5ff448f367570cf1e0c18","tarball":"http://registry-npm.ywwl.com/wasm-tools/download/wasm-tools-0.1.0.tgz","fileCount":12,"integrity":"sha512-gg90QjqplanPytaDbVyZHqS2A9Zwjj/KwuVZWavwaxpJsf1hgXotZ8HMfC60fuXrjUrFmmeFkXCf8tTqzOImRg==","signatures":[{"sig":"MEQCIEHrJsOhtPTKIguzF51Im+sM51OJfDujR2VtGSMX2K/LAiBAS7J6rPVbXYTmgho6NXlTbaF6VwY0KZXiKaXNZpikVA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8425,"size":2967,"noattachment":false,"key":"/wasm-tools/-/wasm-tools-0.1.0.tgz"},"main":"index.js","gitHead":"6210d13f8daee30637f181d482a6fd637d8f52c9","scripts":{"test":"standard && brittle test/*.mjs"},"_npmUser":{"name":"kasperisager","email":"kasperisager@gmail.com"},"repository":{"url":"git+https://github.com/hypercore-skunkworks/wasm-tools.git","type":"git"},"_npmVersion":"8.0.0","description":"A collection of useful tools for working with WASM/WAT in JavaScript","directories":{},"_nodeVersion":"16.11.1","dependencies":{"b4a":"^1.0.0","wabt":"^1.0.24","esbuild":"^0.13.8","commander":"^8.3.0"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^1.3.5","standard":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/wasm-tools_0.1.0_1634894596109_0.22981257075226047","host":"s3://npm-registry-packages"},"publish_time":1634894596244,"_cnpm_publish_time":1634894596244},"0.0.1":{"name":"wasm-tools","version":"0.0.1","author":{"name":"Kasper Isager Dalsgarð","email":"kasper@funktionel.co"},"license":"ISC","_id":"wasm-tools@0.0.1","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@gmail.com"}],"homepage":"https://github.com/hypercore-skunkworks/wasm-tools#readme","bugs":{"url":"https://github.com/hypercore-skunkworks/wasm-tools/issues"},"bin":{"wat-to-js":"bin/wat-to-js.js","wasm-to-js":"bin/wasm-to-js.js","wasm-to-wat":"bin/wasm-to-wat.js","wat-to-wasm":"bin/wat-to-wasm.js"},"dist":{"shasum":"a860f427f8f2a648da5df751526de289f2404af2","tarball":"http://registry-npm.ywwl.com/wasm-tools/download/wasm-tools-0.0.1.tgz","fileCount":12,"integrity":"sha512-6YQQa8HZ1jLag1Dz1R5Cu62cCLm673yhOt766At055mo6IwPhoyk0+HOKl/CpRC8b9z/l/3k3kkxsJT8NSpSbA==","signatures":[{"sig":"MEUCIDtPmcJNX3N0Kod5ePmrSdHwWaeL6dMAUjzWNMwmHwXuAiEA9uI8+TCZ0+g0/EXz4yfkYaDZpY7R1ktwSB0AwQRhTeQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8261,"size":2953,"noattachment":false,"key":"/wasm-tools/-/wasm-tools-0.0.1.tgz"},"main":"index.js","gitHead":"f9398efc3beb55ce19e0cc3fad55343cb36d8633","scripts":{"test":"standard && brittle test/*.mjs"},"_npmUser":{"name":"kasperisager","email":"kasperisager@gmail.com"},"repository":{"url":"git+https://github.com/hypercore-skunkworks/wasm-tools.git","type":"git"},"_npmVersion":"8.0.0","description":"A collection of useful tools for working with WASM/WAT in JavaScript","directories":{},"_nodeVersion":"16.11.1","dependencies":{"b4a":"^1.0.0","wabt":"^1.0.24","esbuild":"^0.13.8","commander":"^8.3.0"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^1.3.5","standard":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/wasm-tools_0.0.1_1634893328750_0.13034577860747798","host":"s3://npm-registry-packages"},"publish_time":1634893328905,"_cnpm_publish_time":1634893328905},"0.0.0":{"name":"wasm-tools","version":"0.0.0","author":{"name":"Kasper Isager Dalsgarð","email":"kasper@funktionel.co"},"license":"ISC","_id":"wasm-tools@0.0.0","maintainers":[{"name":"kasperisager","email":"kasperisager@gmail.com"}],"homepage":"https://github.com/hypercore-skunkworks/wasm-tools#readme","bugs":{"url":"https://github.com/hypercore-skunkworks/wasm-tools/issues"},"bin":{"wat-to-js":"bin/wat-to-wat.js","wasm-to-js":"bin/wasm-to-js.js","wasm-to-wat":"bin/wasm-to-wat.js","wat-to-wasm":"bin/wat-to-wat.js"},"dist":{"shasum":"683db2fdc62db55d77f20e664db24026b285492e","tarball":"http://registry-npm.ywwl.com/wasm-tools/download/wasm-tools-0.0.0.tgz","fileCount":12,"integrity":"sha512-oHISwm61rVmS/XEcYClxj/9p+aoys+lMFhRbhOebmPXAQSX0eXtp0bn3QK/hHn7635VZARZJPuz5EBWR8ByhNA==","signatures":[{"sig":"MEYCIQDwf5KMkYrTsN3qrRanAx8rpGmvIfMpNStIOYf7FNRPZAIhALdBUhLz2ilnY9DVr15mB5KZ26nP4n2B26cZQ8w9z0Au","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8261,"size":2947,"noattachment":false,"key":"/wasm-tools/-/wasm-tools-0.0.0.tgz"},"main":"index.js","gitHead":"a36c8f2d5ee6861f727ba91fc2baa062b4c32abe","scripts":{"test":"standard && brittle test/*.mjs"},"_npmUser":{"name":"kasperisager","email":"kasperisager@gmail.com"},"repository":{"url":"git+https://github.com/hypercore-skunkworks/wasm-tools.git","type":"git"},"_npmVersion":"8.0.0","description":"A collection of useful tools for working with WASM/WAT in JavaScript","directories":{},"_nodeVersion":"16.11.1","dependencies":{"b4a":"^1.0.0","wabt":"^1.0.24","esbuild":"^0.13.8","commander":"^8.3.0"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^1.3.5","standard":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/wasm-tools_0.0.0_1634893095377_0.42567408175742694","host":"s3://npm-registry-packages"},"publish_time":1634893095596,"_cnpm_publish_time":1634893095596}},"readme":"# WASM Tools\n\nWASM Tools is a collection of useful tools for working with WASM and its accompanying text format, WAT, in JavaScript. The tools are based on [esbuild](https://esbuild.github.io) and [wabt](https://github.com/WebAssembly/wabt).\n\n## Installation\n\n```sh\nnpm install wasm-tools\n```\n\n## Tools\n\n### `wasm-to-js` (alias `wat-to-js`)\n\nConvert a WASM or WAT module to a JavaScript module.\n\n#### Usage\n\n```sh\nUsage: wasm-to-js [options] <input>\n\nArguments:\n  input                      the WASM or WAT module to convert to a JavaScript\n                             module\n\nOptions:\n  -V, --version              output the version number\n  -f, --format <format>      the module format to use (choices: \"esm\", \"cjs\",\n                             \"iife\", default: \"esm\")\n  -p, --platform <platform>  the platform to bundle for (choices: \"browser\",\n                             \"node\", \"neutral\", default: \"browser\")\n  -s, --sync                 synchronously load the WASM in the resulting\n                             module\n  -m, --minify               minify the the resulting module\n  -h, --help                 display help for command\n```\n\n### `wasm-to-wat`\n\nConvert a WASM module to a WAT module.\n\n#### Usage\n\n```sh\nUsage: wasm-to-wat [options] <input>\n\nArguments:\n  input          the WASM module to convert to a WAT module\n\nOptions:\n  -V, --version  output the version number\n  -h, --help     display help for command\n```\n\n### `wat-to-wasm`\n\nConvert a WAT module to a WASM module.\n\n#### Usage\n\n```sh\nUsage: wat-to-wasm [options] <input>\n\nArguments:\n  input          the WAT module to convert to WASM module\n\nOptions:\n  -V, --version  output the version number\n  -h, --help     display help for command\n```\n","_attachments":{},"homepage":"https://github.com/hypercore-skunkworks/wasm-tools#readme","bugs":{"url":"https://github.com/hypercore-skunkworks/wasm-tools/issues"},"license":"ISC"}