All Projects → samthor → fast-text-encoding

samthor / fast-text-encoding

Licence: Apache-2.0 license
Fast polyfill for TextEncoder and TextDecoder, only supports UTF-8

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
shell
77523 projects

Projects that are alternatives of or similar to fast-text-encoding

Encoding
Encoding Standard
Stars: ✭ 176 (+125.64%)
Mutual labels:  encoding, utf-8
Lingo
Text encoding for modern C++
Stars: ✭ 28 (-64.1%)
Mutual labels:  encoding, utf-8
haskell-church-encodings
🌀 Church encodings written in Haskell
Stars: ✭ 23 (-70.51%)
Mutual labels:  encoding
lexer
Hackable Lexer with UTF-8 support
Stars: ✭ 19 (-75.64%)
Mutual labels:  utf-8
go-webp
Simple and fast webp library for golang
Stars: ✭ 91 (+16.67%)
Mutual labels:  encoding
hashids.pm
Hashids, ported for Perl
Stars: ✭ 15 (-80.77%)
Mutual labels:  encoding
enc
A simple class for storing UTF-8 strings
Stars: ✭ 12 (-84.62%)
Mutual labels:  utf-8
koa-xml-body
koa middleware to parse xml request body
Stars: ✭ 36 (-53.85%)
Mutual labels:  encoding
go-sdk
Transloadit's official Go SDK, maintained by the community
Stars: ✭ 17 (-78.21%)
Mutual labels:  encoding
ronin-support
A support library for Ronin. Like activesupport, but for hacking!
Stars: ✭ 23 (-70.51%)
Mutual labels:  encoding
characteristics
Character info under different encodings
Stars: ✭ 25 (-67.95%)
Mutual labels:  utf-8
utf8-validator
UTF-8 Validator
Stars: ✭ 18 (-76.92%)
Mutual labels:  utf-8
codec
Encode keys, values and range options, with built-in or custom encodings.
Stars: ✭ 27 (-65.38%)
Mutual labels:  encoding
homoglyphs
Homoglyphs: get similar letters, convert to ASCII, detect possible languages and UTF-8 group.
Stars: ✭ 70 (-10.26%)
Mutual labels:  utf-8
per-title-analysis
Analysis provider for adapting your OTT bitrate ladder
Stars: ✭ 52 (-33.33%)
Mutual labels:  encoding
RLPSwift
Recursive Length Prefix encoding written in Swift
Stars: ✭ 22 (-71.79%)
Mutual labels:  encoding
gilfoyle
Distributed video encoding, hosting and streaming (WIP)
Stars: ✭ 73 (-6.41%)
Mutual labels:  encoding
transloadify
🤖☁️📽📦 Transloadit's cloud encoding in a box
Stars: ✭ 26 (-66.67%)
Mutual labels:  encoding
d3coder
Chrome extension for encoding/decoding and hashing text on websites
Stars: ✭ 26 (-66.67%)
Mutual labels:  encoding
DjvuNet
DjvuNet is a cross platform fully managed .NET library for working with Djvu documents which can run on Linux, macOS and Windows. Library has been written in C# and targets .NET Core v3.0 and .NET Standard v2.1 or later. We intend to provide DjVu document processing capabilities on par with DjVuLibre reference library (or even better).
Stars: ✭ 54 (-30.77%)
Mutual labels:  encoding

Test

This is a fast polyfill for TextEncoder and TextDecoder, which let you encode and decode JavaScript strings into UTF-8 bytes.

It is fast partially as it does not support^ any encodings aside UTF-8 (and note that natively, only TextDecoder supports alternative encodings anyway). See some benchmarks.

^If this polyfill used on Node v5.1 through v11 (when Text... was introduced), then this simply wraps Buffer, which supports many encodings and is native code.

Usage

Install as "fast-text-encoding" via your favourite package manager.

You only need this polyfill if you're supporting older browsers like IE, legacy Edge, ancient Chrome and Firefox, or Node before v11.

Browser

Include the minified code inside a <script> tag or as an ES6 Module for its side effects. It will create TextEncoder and TextDecoder if the symbols are missing on window or global.

<script src="node_modules/fast-text-encoding/text.min.js"></script>
<script type="module">
  import './node_modules/fast-text-encoding/text.min.js';
  import 'fast-text-encoding';  // or perhaps this
  // confidently do something with TextEncoder or TextDecoder \o/
</script>

⚠️ You'll probably want to depend on "text.min.js", as it's compiled to ES5 for older environments.

Not Including Polyfill

If your project doesn't need the polyfill, but is included as a transitive dependency, we publish an empty version that you could pin NPM or similar's version algorithm to. Use "fast-text-encoding@empty".

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].