purescript-node / purescript-node-process Goto Github PK
View Code? Open in Web Editor NEWAccess the global Node.js process object
License: MIT License
Access the global Node.js process object
License: MIT License
I'm currently trying to play with purescript-node-readline
and I use browserify
to bundle the purescript part of the codebase.
The error I get is :
var stdoutIsTTY = $foreign.process.stdout.isTTY
Cannot read property 'isTTY' of undefined
Have you got a clue on what's going on ?
I'm going to submit PR for this.
Get an array containing the command line arguments. Be aware that this can change over the course of the program.
Does this mean the array itself may change? Because if that happens, then argv
should return a clone of the array to keep users of the array referentially transparent.
Hello maintainers,
I'm wondering it since I saw these functions, there already are stdoutIsTTY
and stderrIsTTY
but lacking stdinIsTTY
.
I'm avoiding this lacking by defining my own one only for now:
stdinIsTTY :: Boolean
stdinIsTTY = (unsafeCoerce stdin).isTTY
and this seems working properly like this:
main :: Effect Unit
main = logShow stdinIsTTY
❯ spago run
[info] Build succeeded.
true
❯ echo hi | spago run
[info] Build succeeded.
false
It only exists to pull in the FS
effect, for requireResolve
. Maybe we could just introduce a separate effect for this?
I suggest we steal the one from node-child-process
and put it here, and then have child-process
depend on process
. Programs that use node-child-process
will probably want to use node-process
too, although the converse seems less likely.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.