Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
node_repl
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
r...@tinyclouds.org  
View profile  
 More options Sep 10 2009, 2:14 pm
From: r...@tinyclouds.org
Date: Thu, 10 Sep 2009 20:14:40 +0200
Local: Thurs, Sep 10 2009 2:14 pm
Subject: node_repl
Here's a fun script

  #!/usr/bin/env node
  node.stdio.open();
  function prompt () {
    print("node-" + node.version + "> ");
  }
  prompt();
  node.stdio.addListener("data", function (cmd) {
    try {
      var result = eval(cmd);
      puts("=> " + JSON.stringify(result) + "\n");
    } catch (e) {
      puts("!! Error: " + e.message);
    }
    prompt();
  });

  addListener("exit", function () {
    puts("\n\ngoodbye\n");
  });

Works well with rlwrap.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Apthorp  
View profile  
 More options Sep 10 2009, 6:44 pm
From: Jeremy Apthorp <norna...@gmail.com>
Date: Fri, 11 Sep 2009 08:44:23 +1000
Local: Thurs, Sep 10 2009 6:44 pm
Subject: Re: node_repl
Can you make node run that when it's given no arguments on the
command-line (python-style)?

Jeremy

2009/9/11  <r...@tinyclouds.org>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felix Geisendörfer  
View profile  
 More options Sep 10 2009, 6:53 pm
From: Felix Geisendörfer <fe...@debuggable.com>
Date: Thu, 10 Sep 2009 15:53:33 -0700 (PDT)
Local: Thurs, Sep 10 2009 6:53 pm
Subject: Re: node_repl
Oh my! This is awesome! Node is awesome. I also didn't know about
rlwrap - good stuff!

Thanks for sharing this!
-- Felix Geisendörfer aka the_undefined

On Sep 10, 8:14 pm, r...@tinyclouds.org wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felix Geisendörfer  
View profile  
 More options Sep 10 2009, 6:54 pm
From: Felix Geisendörfer <fe...@debuggable.com>
Date: Thu, 10 Sep 2009 15:54:06 -0700 (PDT)
Local: Thurs, Sep 10 2009 6:54 pm
Subject: Re: node_repl
+1

On Sep 11, 12:44 am, Jeremy Apthorp <norna...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »