UNPKG

@tendrock/ipc

Version:

An IPC system implementation of Minecraft Community Script Protocol for Minecraft Bedrock

12 lines (11 loc) 291 B
export class Utils { static splitString(str, maxLength = 2047) { const result = []; let start = 0; while (start < str.length) { result.push(str.slice(start, start + maxLength)); start += maxLength; } return result; } }