format

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.string

Format the passed string using the requested format. Available formats are:

  • isoDate
  • isoDateTime
  • isoTime
  • integer
  • number
  • alphanum
  • hex
  • hexa
  • creditCard

Params

  1. string*-String

    The string to format

  2. format*-String

    The format to use

Return

  1. -String

    The formatted value

Example

import { format } from '@blackbyte/sugar/string'

Todo

  • testsnormal