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.

Dependencies (0)

    Dev Dependencies (3)

    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