humanize-string
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.0 • Public • Published

    humanize-string

    Convert a camelized/dasherized/underscored string into a humanized one Example: fooBar-Baz_FazFoo bar baz faz

    Install

    npm install humanize-string

    Usage

    import humanizeString from 'humanize-string';
    
    humanizeString('fooBar');
    //=> 'Foo bar'
    
    humanizeString('foo-bar');
    //=> 'Foo bar'
    
    humanizeString('foo_bar');
    //=> 'Foo bar'

    Related

    • camelcase - Convert a dash/dot/underscore/space separated string to camelcase

    Install

    npm i humanize-string

    DownloadsWeekly Downloads

    137,580

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    3.37 kB

    Total Files

    5

    Last publish

    Collaborators

    • sindresorhus