@loadsmart/utils-string

useful functions for manipulating string

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@loadsmart/utils-string
0.3.12 years ago2 years agoMinified + gzip package size for @loadsmart/utils-string in KB

Readme

BundlePhobia BundlePhobia
utils-string
useful functions for manipulating strings

Install via NPM

$ npm i @loadsmart/utils-string --save

Install via yarn

$ yarn add @loadsmart/utils-string

Usage

import React from 'react'
import {
  toCapitalizeFirstLetter,
  toLocaleCapitalizeFirstLetter,
} from '@loadsmart/utils-string'

export default () => (
  <div>
    Uppercase First Letter: {toCapitalizeFirstLetter('new york')}
    Uppercase First Letter with locale provided: {toLocaleCapitalizeFirstLetter(
      'istanbul',
      'tr'
    )}
  </div>
)