Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

Commit

Permalink
Add attribution for fast-text-encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSandersonMS committed Jul 22, 2018
1 parent f0ef2e8 commit 1446c95
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -5,6 +5,14 @@ const nativeDecoder = typeof TextDecoder === 'function'
export const decodeUtf8: (bytes: Uint8Array) => string
= nativeDecoder ? nativeDecoder.decode.bind(nativeDecoder) : decodeImpl;

/*!
Logic in decodeImpl is derived from fast-text-encoding
https://github.com/samthor/fast-text-encoding
License for fast-text-encoding: Apache 2.0
https://github.com/samthor/fast-text-encoding/blob/master/LICENSE
*/

function decodeImpl(bytes: Uint8Array): string {
let pos = 0;
const len = bytes.length;
Expand Down

0 comments on commit 1446c95

Please sign in to comment.