Skip to content

juancu8/simply-npm-jcu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Change strings

This is a example. Here change parts of strings. Source Platzi

Find in npm

Rules

  • The word ends in "ar" eliminates "ar".

  • The word starts with z is added "pe" at the end.

  • The word has 10 or more letters it is split in half and joined with a '-'.

  • The word is a palindrome, no account and the same word is returned interspersing uppercase and lowercase.

Install

npm instal jcu-words

Use

import trans from 'words'

trans("Programar") // Program
trans("Zorro") // Zorrope
trans("Zarpar") // Zarppe
trans("Abecedario") // Abece-dario
trans("sometemos") // SoMeTeMoS

License

MIT

About

make easy package for npm

Resources

License

Stars

Watchers

Forks

Packages

No packages published