Skip to content

`shortname-js`is a JavaScript function designed to shorten names (Portuguese - PT ๐Ÿ‡ต๐Ÿ‡น | BR ๐Ÿ‡ง๐Ÿ‡ท | AO ๐Ÿ‡ฆ๐Ÿ‡ด) in a simple and user-friendly way. The function allows users to quickly enter full names and receive abbreviated versions of those names in return. ๐Ÿ˜…

License

Notifications You must be signed in to change notification settings

moser-jose/shortname-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

shortname-js is a JavaScript function designed to shorten names (Portuguese - PT ๐Ÿ‡ต๐Ÿ‡น | BR ๐Ÿ‡ง๐Ÿ‡ท | AO ๐Ÿ‡ฆ๐Ÿ‡ด) in a simple and user-friendly way. The function allows users to quickly enter full names and receive abbreviated versions of those names in return. ๐Ÿ˜…

The MIT License The MIT License

Install

yarn

yarn add @mosmmy/shortname-js

NPM

npm install @mosmmy/shortname-js

Use

const {shortName} = required('@mosmmy/shortname-js')

console.log(shortName('Jorge Pedro Andrรฉ dos Santos'))          //Jorge P. A. dos Santos

console.log(shortName('Pedro de Sousa Andrรฉ'))                  //Pedro S. Andrรฉ

console.log(shortName('Marcos ร‚ngelo Mateus dos Santos'))       //Marcos A. M. dos Santos

To run the test locally:

npm run dev

Licence

This project is governed by the MIT. Just remember to be a nice person and send back any modifications, corrections or improvements. โœŒ๏ธ

Author


@moser-jose

About

`shortname-js`is a JavaScript function designed to shorten names (Portuguese - PT ๐Ÿ‡ต๐Ÿ‡น | BR ๐Ÿ‡ง๐Ÿ‡ท | AO ๐Ÿ‡ฆ๐Ÿ‡ด) in a simple and user-friendly way. The function allows users to quickly enter full names and receive abbreviated versions of those names in return. ๐Ÿ˜…

Resources

License

Stars

Watchers

Forks

Packages

No packages published