# byteslice **Repository Path**: mirrors_mikeal/byteslice ## Basic Information - **Project Name**: byteslice - **Description**: Simple way to concat and slice arrays through bytewise encoding and decoding. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2025-09-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## byteslice Simple way to concat and slice arrays through bytewise encoding and decoding. ```javascript var b = byteslice(['yes', 1]) bytewise.decode( b.encode(['x']) ) // [['yes', 1], ['x']] b.decode(b.encode(['x'])) // ['x'] bytewise.decode( b.encode(['x', ['y']]) ) // [['yes', 1], ['x', ['y']]] b.decode(b.encode(['x', ['y']])) // ['x', ['y']] b = b.concat(['no', 0]) bytewise.decode( b.encode(['x']) ) // [['yes', 1], ['no', 0], ['x']] b.decode(b.encode(['x'])) // ['x'] bytewise.decode( b.encode(['x', ['y']]) ) // [['yes', 1], ['no', 0], ['x', ['y']]] b.decode(b.encode(['x', ['y']])) // ['x', ['y']] ```