GithubHelp home page GithubHelp logo

Support Browser Usage about re2-wasm HOT 2 OPEN

google avatar google commented on May 18, 2024 2
Support Browser Usage

from re2-wasm.

Comments (2)

murgatroid99 avatar murgatroid99 commented on May 18, 2024 1

This package does only support Node.js, as the documentation implies. The package exists in this form, with the focus on Node support, because that is what I needed to support my use case. The node-re2 package you linked was not an option because I needed to avoid adding a dependency on a native addon like that package has. Though, as the README says, this package borrows heavily from that one in terms of API and documentation.

I have no objection to adding support for browsers, but I do not have time to devote to adding that myself. Of course, I would be happy to accept any contributions that add that.

My main concern with supporting browsers is that I needed to force the WASM module to be loaded synchronously so that the package would be compatible with other existing code that uses CommonJS module loading. Browsers, on the other hand, appear to be required to load WASM modules asynchronously, and I am unsure how to reconcile those in a clean way. I suspect that a significant amount of code duplication will be required.

from re2-wasm.

sakib00 avatar sakib00 commented on May 18, 2024

Hello, I see this issue was created almost two years back. Was anyone able to make this support browser by any chance? If not, can anyone walk me through the steps of how to do it? Or what should I be looking into? (I am very new to this wasm world, any kind of help is appreciated)

from re2-wasm.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.