Coder Social home page Coder Social logo

Support for `process.env`? about goja_nodejs HOT 4 CLOSED

dop251 avatar dop251 commented on August 28, 2024
Support for `process.env`?

from goja_nodejs.

Comments (4)

dop251 avatar dop251 commented on August 28, 2024

Sure. You can use the console module as an example.

BTW, goja supports Proxy (and many other ES6 features)

from goja_nodejs.

MarcusRiemer avatar MarcusRiemer commented on August 28, 2024

Wow, I just wanted to say that implementing this was a very pleasant experience. I feared that there was lots of marshaling awaiting me, but at least the very minimal implementation to fulfill my use case worked out of the box. I deliberately added an unconditional fail to the tests because I couldn't believe how it just worked.

And I am also in awe how far the ES6 support is by now. This is great news!

from goja_nodejs.

kke avatar kke commented on August 28, 2024

The "process.env" part from #33 was already merged, so in that regard this issue has been solved.

I think process.stdout.write and process.stderr.write("foo\n") should be rather easy to add and there are other low hanging fruits in there that should be pretty much oneliners. Maybe taking a stab at those at some point unless someone is faster.

from goja_nodejs.

MarcusRiemer avatar MarcusRiemer commented on August 28, 2024

Sorry, forgot to close the issue. Feel free to go for those stderr and stdout parts, I personally do not need them and don't plan on tackling them. I'm not 100% confident that they are oneliners because I have no idea how they would / should behave when called with binary data.

from goja_nodejs.

Related Issues (20)

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.