{"id":20699715,"url":"https://github.com/napi-rs/wasm-tools","last_synced_at":"2026-03-27T02:26:07.288Z","repository":{"id":260134347,"uuid":"786655317","full_name":"napi-rs/wasm-tools","owner":"napi-rs","description":"https://github.com/rustwasm/walrus bindings","archived":false,"fork":false,"pushed_at":"2025-04-15T02:13:33.000Z","size":288,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-15T03:24:14.340Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/napi-rs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-15T03:43:21.000Z","updated_at":"2025-04-15T02:13:07.000Z","dependencies_parsed_at":"2024-11-29T03:20:15.021Z","dependency_job_id":"674c4954-6c29-45d6-af65-815b37a208d1","html_url":"https://github.com/napi-rs/wasm-tools","commit_stats":{"total_commits":46,"total_committers":2,"mean_commits":23.0,"dds":"0.19565217391304346","last_synced_commit":"ec1c4d522079a6bcfd7c59dd8079f36cedb3ee5c"},"previous_names":["napi-rs/wasm-tools"],"tags_count":3,"template":false,"template_full_name":"napi-rs/package-template-pnpm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/napi-rs%2Fwasm-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/napi-rs%2Fwasm-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/napi-rs%2Fwasm-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/napi-rs%2Fwasm-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/napi-rs","download_url":"https://codeload.github.com/napi-rs/wasm-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249000079,"owners_count":21196248,"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":[],"created_at":"2024-11-17T00:31:36.354Z","updated_at":"2026-03-27T02:26:07.238Z","avatar_url":"https://github.com/napi-rs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `@napi-rs/wasm-tools`\n\n![https://github.com/napi-rs/wasm-tools/actions](https://github.com/napi-rs/wasm-tools/workflows/CI/badge.svg)\n\n\u003e https://github.com/rustwasm/walrus bindings\n\n## Install this package\n\n```\npnpm add @napi-rs/wasm-tools -D\nyarn add @napi-rs/wasm-tools -D\n```\n\n## Usage\n\n```ts\n// Generate dwarf info and emit wasm\n\nimport { join } from 'node:path'\nimport { readFile, writeFile } from 'node:fs/promises'\nimport { fileURLToPath } from 'node:url'\n\nimport { ModuleConfig } from '@napi-rs/wasm-tools'\n\nconst __dirname = join(fileURLToPath(import.meta.url), '..')\n\nconst wasm = await readFile(join(__dirname, 'panic.wasm32-wasi.wasm'))\n\nconst binary = new ModuleConfig()\n  .generateDwarf(true)\n  .generateNameSection(true)\n  .generateProducersSection(true)\n  .preserveCodeTransform(true)\n  .parse(wasm)\n  .emitWasm(true)\n\nawait writeFile(join(__dirname, 'panic.wasm32-wasi.wasm'), binary)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnapi-rs%2Fwasm-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnapi-rs%2Fwasm-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnapi-rs%2Fwasm-tools/lists"}