0.0.22 • Published 6 years ago

@plexis/to-chunks v0.0.22

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

@plexis/to-chunks

Splits the input text into an array of chunks.

Installation npm i @plexis/to-chunks

Usage

import toChunks from '@plexis/to-chunks';

toChunks('Hello world');
// => ['H', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd']

toChunks('   ');
// => [' ', ' ', ' ']

toChunks('1234567', 2);
// => ['12', '34', '56', '7']

toChunks('1234567', 6);
// => ['123456', '7']

Aliases

import toChunks from '@plexis/to-chunks';
import {toChunks, chop} from 'plexis';
0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago