aboutsummaryrefslogtreecommitdiff
path: root/challenge-143/abigail/node
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.freedom.nl>2021-12-13 13:38:44 +0100
committerAbigail <abigail@abigail.freedom.nl>2021-12-13 14:39:54 +0100
commit13ebea25187e04a08fb804ce8496c67dc373000b (patch)
tree5b5468bdfc3cdba8d997912da193351b1c742c93 /challenge-143/abigail/node
parenta9419595b246ec2ba94db259326024b980513dc3 (diff)
downloadperlweeklychallenge-club-13ebea25187e04a08fb804ce8496c67dc373000b.tar.gz
perlweeklychallenge-club-13ebea25187e04a08fb804ce8496c67dc373000b.tar.bz2
perlweeklychallenge-club-13ebea25187e04a08fb804ce8496c67dc373000b.zip
Eval solutions for week 143, part 1
Diffstat (limited to 'challenge-143/abigail/node')
-rw-r--r--challenge-143/abigail/node/ch-1.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/challenge-143/abigail/node/ch-1.js b/challenge-143/abigail/node/ch-1.js
new file mode 100644
index 0000000000..33be42296f
--- /dev/null
+++ b/challenge-143/abigail/node/ch-1.js
@@ -0,0 +1,10 @@
+#!/usr/local/bin/node
+
+//
+// Run as: node ch-1.js < input-file
+//
+
+ require ('readline')
+. createInterface ({input: process . stdin})
+. on ('line', line => {console . log (eval (line))})
+