1.0.17 • Published 10 years ago

pig-latin-converter v1.0.17

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

pig-latin-translator

translates text to pig latin

Install:

npm install -g pig-latin-converter

Now piglatin is installed as a command line program.

Usage:

Read from a pipe:

$echo 'pig latin for breakfast' | piglatin
igpay atinlay orfay eakfastbray

Or process arguments:

$piglatin dude why am I eating the moon
udeday why amyay Iyay eatingyay ethay oonmay

Or require from within a program:

var pigLatin = require('piglatin');
console.log(pigLatin('I hope this works'));
//Iyay opehay isthay orksway

bugs

  • Doesn't seem to handle newlines ( \n ) very well - see below:
  • Just typing piglatin into 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 pigHaiku
An old silent pond...		      Anyay oldyay ilentsay ond...pay

A frog jumps into the pond,	  A ogfray umpsjay intoyay ethay ond,

splash! Silence again.		    splash! Ilencesay again.
				    yay


 by Basho (1644-1694)		       by Ashobay (1644-1694)
1.0.17

10 years ago

1.0.16

10 years ago

1.0.15

10 years ago

1.0.14

10 years ago

1.0.13

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago