split-chars
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

split-chars

Split a string on each full character.

Install

npm install split-chars

Usage

import splitChars from 'split-chars';

'🏴󠁧󠁢󠁥󠁮󠁧󠁿❤️谢👪'.split('');
//=> ['�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '❤', '️', '谢', '�', '�']

[...splitChars('🏴󠁧󠁢󠁥󠁮󠁧󠁿❤️谢👪')];
//=> ['🏴󠁧󠁢󠁥󠁮󠁧󠁿', '❤️', '谢', '👪']

API

splitChars(input)

input

Type: string

The string to split.

Versions

Current Tags

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

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 4.0.0
    1
  • 3.0.0
    0
  • 2.0.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i split-chars

Weekly Downloads

1

Version

4.0.0

License

MIT

Unpacked Size

3.02 kB

Total Files

5

Last publish

Collaborators

  • richienb