Narcissistic, Perfectly Modest
    Wondering what’s next for npm?Check out our public roadmap! »

    format-name

    0.1.0 • Public • Published

    format-name

    npm package Dependency Status devDependency Status

    Make correct first/last name combination among different languages including preference.

    Installation

    yarn add format-name
    

    The Gist

    import formatName, { FIRST_LAST, LAST_FIRST } from 'format-name';
    
    // Different depending on a config.
    formatName('Ross', 'Khanas', FIRST_LAST); // Ross Khanas
    formatName('Ross', 'Khanas', LAST_FIRST); // Khanas Ross
    
    // Last name is always first.
    formatName('台綸', '曾', FIRST_LAST); // 曾台綸
    formatName('台綸', '曾', LAST_FIRST); // 曾台綸

    License

    MIT

    Install

    npm i format-name

    DownloadsWeekly Downloads

    104

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    5.29 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar