{"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"},"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","publish_time":1634893095596,"_cnpm_publish_time":1634893095596,"dist-tags":{"latest":"0.2.1"}}