Skip to content

anderson-bsoares/beautiful-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beautiful-name

Formate nome brasileiro de uma forma simples

Exemplo:

import { BeautifulName } from "beautiful-name";

const userName = new BeautifulName("Fulano Martins da Silva");

/*
        {
            BeautifulName {
                fullName: 'Fulano Martins da Silva',
                firstName: 'Fulano',
                beautifulName: 'Fulano M. da Silva',
                lastName: 'Silva'
            }
        }
    */

Adicione o beautiful-name

    yarn add beautiful-name

Or

    npm install beautiful-name