{"id":16760972,"url":"https://github.com/bmeurer/gulp-wat2wasm","last_synced_at":"2025-04-10T17:40:54.587Z","repository":{"id":57259456,"uuid":"221167827","full_name":"bmeurer/gulp-wat2wasm","owner":"bmeurer","description":"GULP plugin to compile .wat to .wasm files","archived":false,"fork":false,"pushed_at":"2020-12-16T13:31:59.000Z","size":15,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T15:21:39.253Z","etag":null,"topics":["gulp","gulp-plugin","hacktoberfest","wabt","wasm","webassembly"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bmeurer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-12T08:30:23.000Z","updated_at":"2023-03-18T11:29:00.000Z","dependencies_parsed_at":"2022-08-25T03:53:52.504Z","dependency_job_id":null,"html_url":"https://github.com/bmeurer/gulp-wat2wasm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmeurer%2Fgulp-wat2wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmeurer%2Fgulp-wat2wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmeurer%2Fgulp-wat2wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmeurer%2Fgulp-wat2wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmeurer","download_url":"https://codeload.github.com/bmeurer/gulp-wat2wasm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247965238,"owners_count":21025347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gulp","gulp-plugin","hacktoberfest","wabt","wasm","webassembly"],"created_at":"2024-10-13T04:25:05.880Z","updated_at":"2025-04-10T17:40:54.570Z","avatar_url":"https://github.com/bmeurer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"gulp-wat2wasm\n=============\n\n**gulp-wat2wasm** is a wrapper around [wabt.js](https://github.com/AssemblyScript/wabt.js) allowing to compile WebAssembly `.wat` files into `.wasm` files, similar to the `wat2wasm` command line tool.\n\nUsage\n-----\n\n```\n$\u003e npm install gulp-wat2wasm\n```\n\nIn your `Gulpfile.js` you can just hook it up like this:\n\n```js\nconst wat2wasm = require('gulp-wat2wasm');\n\n// Post-MVP WebAssembly features to legalize.\nconst features = {\n  exceptions: false,       // Exception handling\n  mutable_globals: false,  // Import/Export mutable globals\n  sat_float_to_int: false, // Non-trapping Float-to-int Conversions\n  sign_extension: false,   // Sign-extension operators\n  simd: false,             // 128-bit packed operators\n  threads: false,          // Threading\n  multi_value: false,      // Multi-value\n  tail_call: false,        // Tail Call\n  bulk_memory: false,      // Bulk Memory Operations and Conditional Segment Initialization\n  reference_types: false,  // Reference Types\n  annotations: false       // Custom Annotation Syntax for the Wasm Text Format\n};\n\n// Options modifying the behavior of the binary generation.\nconst options = {\n  canonicalize_lebs: false, // Write all LEB128 sizes as 5-bytes instead of their minimal size\n  relocatable: false,       // Create a relocatable wasm binary (suitable for linking with e.g. lld)\n  write_debug_names: false  // Write debug names to the generated binary file\n};\n\nconst wasmTask = () =\u003e src('./src/*.wat').pipe(wat2wasm(features, options)).pipe(dest('./dst'));\n```\n\nLicense\n-------\n\nCopyright [Benedikt Meurer](https://github.com/bmeurer), Licensed under [Apache-2.0](https://github.com/bmeurer/gulp-wat2wasm/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmeurer%2Fgulp-wat2wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmeurer%2Fgulp-wat2wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmeurer%2Fgulp-wat2wasm/lists"}