You are reading a single comment by @Snerkle and its replies. Click here to read the full conversation.
  • when I require('espruino') in node and use expr then I get a lot of info on the console

    Yes, it's a pain - It's under the 'To Do' list on https://github.com/espruino/EspruinoTool­s - sadly I have my work cut out doing everything else though!

    cli -e

    At the moment the CLI just sends that command straight to Espruino, so it doesn't really have a way of parsing the result out.

    I guess it could change to using .expr() instead (which actually sends 'console.log("<<"+"<<<"+JSON.stringify('­+expressionToExecute+')+">>>"+">>")'), but I wonder if that might cause some problems with code that worked previously.

  • Referring back to post #9 above:

    How about a new command line option, say -x that uses .expr() and doesn't impact existing users of -e ?

About

Avatar for Snerkle @Snerkle started