deathcap / nodeachrome

run Node.js scripts in Google Chrome (experimental)
MIT License
2 stars 0 forks source link

Add Unix cli.js client for command-line native usage. Closes GH-4 #24

Closed deathcap closed 8 years ago

deathcap commented 8 years ago

https://github.com/deathcap/nodeachrome/issues/4 Native command-line interface via host

Uses a Unix domain socket to connect to the native host, which then sends messages to the browser

Example usage:

./host/cli.js '1+2'

spawns a new process in Nodeachrome, runs bin/eval.js to eval() 1+2

deathcap commented 8 years ago

Not yet any way to get the result back on the command-line (for now, have to view the output in the browser). Probably should pipe process.stdout. See also https://github.com/deathcap/nodeachrome/issues/21 child_process API: stdio