@plexis/to-human

0.0.22 • Public • Published

@plexis/to-human

Converts a string into a human readable text

Installation

npm i @plexis/to-human

Usage

import toHuman from '@plexis/to-human';

toHuman('foo'); // => 'Foo'
toHuman('foo     bar'); // => 'Foo bar'
toHuman(' foo-bar  baz quxQuux corge_grault GarplyWaldo'); // => 'Foo bar baz qux quux corge grault garply waldo'
toHuman(' foo-bar-baz qux       quux'); // => 'Foo bar baz qux quux'

Aliases

import toHuman from '@plexis/to-human';
import {toHuman, humanize} from 'plexis';

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @plexis/to-human

      Weekly Downloads

      2

      Version

      0.0.22

      License

      MIT

      Unpacked Size

      3.04 kB

      Total Files

      4

      Last publish

      Collaborators

      • vorillaz