# stringencoding **Repository Path**: mirrors_defunctzombie/stringencoding ## Basic Information - **Project Name**: stringencoding - **Description**: Encode to/from Typed Array buffers - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-02-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # stringencoding [![Build Status](https://secure.travis-ci.org/defunctzombie/stringencoding.png?branch=master)](http://travis-ci.org/defunctzombie/stringencoding) # ## basic usage ```javascript // encode a string into a typed array given an encoding var uint8array = TextEncoder(encoding).encode(string); // decode typed array into a string var string = TextDecoder(encoding).decode(uint8array); ``` ## streaming decode ```javascript var string = ''; var decoder = TextDecoder(encoding), buffer; while (buffer = next_chunk()) { string += decoder.decode(buffer, { stream:true }); } string += decoder.decode(); // finish the stream ``` ## install ``` npm install stringencoding ```