Comments (1)
I think I found a better way:
// worker.js
self.Module = {}
self.Module.print = content => postMessage({ type: 'msg', content })
self.Module.printErr = content => postMessage({ type: 'err', content })
Source: https://emscripten.org/docs/api_reference/module.html#id1
from wasm-git.
Related Issues (20)
- Contribute an example with more libgit2 calls HOT 1
- Did you try to compile git/git? HOT 1
- Failing to build wasm-git HOT 23
- How to do a git clone to be used from memfs + questions about global variables HOT 10
- Is it possible to push to a github repo? HOT 2
- How to use wasm-git with different version of libgit2? HOT 4
- Add TypeScript types to final bundle HOT 2
- Failed To Init with Template
- Support for Rust git2-rs compilation HOT 2
- How to use in Deno? HOT 3
- What does `if (mode === 0o100000 > 0)` mean? HOT 6
- Can't compile WASM-GIT HOT 2
- crazy idea, git server via rtcdatachannel? ie p2p in browser? HOT 1
- `could not remove directory` error during branch removal HOT 2
- No output when calling `callMain` with args HOT 3
- How can I use my credentials to clone/pull/push to a private repo? HOT 5
- Adding wasm-git inside a react app
- Optimize wasm file HOT 3
- Add all files to staging HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasm-git.