SkillAgentSearch skills...

Shortname

shortname 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. πŸ˜…

Install / Use

/learn @moser-jose/Shortname
About this skill

Quality Score

0/100

Category

Design

Supported Platforms

Universal

README

shortname

shortname 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 Version npm npm downloads npm bundle size TypeScript Prettier Jest Coverage Status PRs Welcome GitHub stars

Install

yarn

yarn add @mosmmy/shortname

NPM

npm install @mosmmy/shortname

Use


import { shortName } from '@mosmmy/shortname'

console.log(shortName('Jorge Pedro AndrΓ© dos Santos'))          //Jorge P. A. dos Santos

console.log(shortName('Pedro de Sousa AndrΓ©'))                  //Pedro de S. AndrΓ©

console.log(shortName('Marilda dos Santos Pedro de Souza'))     //Marilda dos S. P. de Souza

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

To run the test:

npm run test

npm run test:coverage

Licence

This project is governed by the MIT. Just remember to be a nice person and send back any modifications, corrections or improvements. ✌️

Author

| <img src="https://avatars0.githubusercontent.com/u/8234620?" width="115"><br><sub>@moser-jose</sub> | | :---: |

View on GitHub
GitHub Stars5
CategoryDesign
Updated10mo ago
Forks1

Languages

TypeScript

Security Score

77/100

Audited on May 30, 2025

No findings