make-alike / machine

basic interpreter
Apache License 2.0
1 stars 0 forks source link

Add first CLI "part" - basic pipe + cat #11

Closed noopkat closed 7 years ago

noopkat commented 7 years ago

Because I'm working on the command line, my first machine part is a quick pipe output for #2! It seems silly because you use it like this: cat file.txt | ./pipe.js and that's basically a cat of a cat?? 😸

But I have the feeling that I'm going to be doing a lot of piping, so this is a great first part to make I guess, and it can be extended for the next part.

EDIT: I felt like I was cheating using native cat, so I implemented it in Node. You can run it with ./cat.js file.txt for example.

Journal entry to come.