Skip to content

Release v0.2.0

Choose a tag to compare

@vipermind vipermind released this 04 Feb 12:19
· 53 commits to master since this release

API Change

  • The module is a format function - not an object with format function as in version 0.1.x

New Options

  • trim takes boolean value - trims leading 0's for binary formatting
  • padstr string used for left-padding
  • size specifies required size of a formatted number. If length of the formatted value is less than size value then string is padded using padstr