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. ๐
yarn add @mosmmy/shortname-js
npm install @mosmmy/shortname-js
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
This project is governed by the MIT. Just remember to be a nice person and send back any modifications, corrections or improvements. โ๏ธ
@moser-jose |
---|