Share your code.
translates text to pig latin
npm install -g pig-latin-converter
Now piglatin is installed as a command line program.
$echo 'pig latin for breakfast' | piglatinigpay atinlay orfay eakfastbray
$piglatin dude why am I eating the moonudeday why amyay Iyay eatingyay ethay oonmay
var pigLatin = ;console;//Iyay opehay isthay orksway
- Doesn't seem to handle newlines ( \n ) very well - see below:
- Just typing
piglatininto the command line results in the program waiting for input. Ideally, it'd exit with a usage message. I could implement this but... that's for another day.
$cat haiku | piglatin$pr -m -t haiku pigHaikuAn old silent pond... Anyay oldyay ilentsay ond...payA frog jumps into the pond, A ogfray umpsjay intoyay ethay ond,splash! Silence again. splash! Ilencesay again.yayby Basho (1644-1694) by Ashobay (1644-1694)