Giter VIP home page Giter VIP logo

purescript-node-process's People

Contributors

alexanderaa avatar bouzuya avatar ford-prefect avatar garyb avatar hdgarrood avatar jordanmartinez avatar justinwoo avatar jvliwanag avatar kika avatar kl0tl avatar kritzcreek avatar matoruru avatar nwolverson avatar paf31 avatar sigma-andex avatar simonyangme avatar srghma avatar thomashoneyman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

purescript-node-process's Issues

Problem accessing process.stdout.isTTY

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 ?

Should argv clone the array?

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.

Lacking the counterpart of process.stdin.isTTY

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.
trueecho hi | spago run
[info] Build succeeded.
false

Remove FS dependency?

It only exists to pull in the FS effect, for requireResolve. Maybe we could just introduce a separate effect for this?

Use a proper Signal type

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.

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.