platzolang
v0.1.0
Published
traductor de idioma platzom
Downloads
15
Maintainers
Readme
PLATZOM
Platzom es un idioma creado para el curso de fundamentos de JS de Platzi
Descripcion del idioma
- si la palabra termina con "ar", se le quitan esas dos letras
- si la palabra inicia con "z", se le añade "pe" al final
- si la palabra traducida tiene mas 10 o mas letras, se debe partir en dos por la mitad y unir con un guion medio.
- si la palabra es un palindromo (que se leen igual al derecho y al reves), ninguna regla anterior cuenta y se devuelve la misma palabra pero intercalanado letras mayusculas y minusculas
Instalacion
npm install platzom
Uso
import platzom from 'platzom'
platzom ('Programar'); // Program
platzom ('Zorro'); // Zorrope
platzom ('Zarpar'); // Zarppe
platzom ('abecedario'); // abece-dario
platzom ('sometemos'); // SoMeTeMos
Creditos
##Licencia MIT