@anopszetex/string-util

1.0.3 • Public • Published

StringUtil

It's just a simple example

Install

$ npm i @anopszetex/string-util

Usage

import StringUtil from '@anopszetex/string-util';

{
const result = StringUtil.isEmpty('') //=> true
}

{
 const result = StringUtil.isEmpty(1) //=> true
}

{
 const result = StringUtil.isEmpty('    ') //=> true
}

{
 const result = StringUtil.isEmpty('not_empty') //=> false
}

{
 const result = StringUtil.removeEmptySpaces(' H e l l o W o r l d ') //=> 'HelloWorld'
}

API

StringUtil.isEmpty(str: string)

Returns true if is empty, otherwise false

StringUtil.removeEmptySpaces(str: string)

Remove space at begin string and end the string

For more examples, check out the path: string-util/index.test.js

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @anopszetex/string-util

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

2.4 kB

Total Files

4

Last publish

Collaborators

  • anopszetex