{"id":16482814,"url":"https://github.com/yusinto/node-wasm","last_synced_at":"2025-03-21T07:30:52.884Z","repository":{"id":143899698,"uuid":"121050435","full_name":"yusinto/node-wasm","owner":"yusinto","description":"Import and use wasm in node","archived":false,"fork":false,"pushed_at":"2018-02-17T03:59:32.000Z","size":85,"stargazers_count":28,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-11T13:12:17.189Z","etag":null,"topics":["load","load-wasm","node","node-wasm","nodejs","rust","wasm","wasm-files","wasm-framework","webassembly"],"latest_commit_sha":null,"homepage":"","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/yusinto.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":"2018-02-10T20:14:24.000Z","updated_at":"2024-07-29T23:50:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3f18c18-0443-4839-bb58-9a89f7e8fc74","html_url":"https://github.com/yusinto/node-wasm","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/yusinto%2Fnode-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusinto%2Fnode-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusinto%2Fnode-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusinto%2Fnode-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yusinto","download_url":"https://codeload.github.com/yusinto/node-wasm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221812708,"owners_count":16884686,"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":["load","load-wasm","node","node-wasm","nodejs","rust","wasm","wasm-files","wasm-framework","webassembly"],"created_at":"2024-10-11T13:12:06.990Z","updated_at":"2024-10-28T09:34:37.528Z","avatar_url":"https://github.com/yusinto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-wasm\n\n[![npm version](https://img.shields.io/npm/v/node-wasm.svg?style=flat-square)](https://www.npmjs.com/package/node-wasm) [![npm downloads](https://img.shields.io/npm/dm/node-wasm.svg?style=flat-square)](https://www.npmjs.com/package/node-wasm) [![npm](https://img.shields.io/npm/dt/node-wasm.svg?style=flat-square)](https://www.npmjs.com/package/node-wasm) [![npm](https://img.shields.io/npm/l/node-wasm.svg?style=flat-square)](https://www.npmjs.com/package/node-wasm)\n\n\u003e **Bare minimum util to import and use wasm in node** :speedboat:\n\nThis is still work in progress.\n\n## Installation\n\n```\nyarn add node-wasm\n```\n\n## Quickstart\n\n```javascript\nimport loadWasm from 'node-wasm';\n\nasync function run() {\n  const {rust_function} = await loadWasm('/local/path/to/wasm');\n  const result = rust_function();\n  console.log(result);\n}\n\nrun();\n```\n\n## Example\nCheck the [node example](https://github.com/yusinto/node-wasm/tree/master/example/node) for a \nsimple demo.\n\nThe corresponding [rust example](https://github.com/yusinto/node-wasm/tree/master/example/rust) is\nalso available for you to play with.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusinto%2Fnode-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusinto%2Fnode-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusinto%2Fnode-wasm/lists"}