From 12c6b2395be2bd1371284adf03e4826ba5edc761 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 1 Apr 2020 15:23:39 -0400 Subject: Move encode, decode helpers to /std/encoding/utf8.ts, delete /std/strings/ (#4565) also removes std/encoding/mod.ts and std/archive/mod.ts which are useless. --- std/strings/encode.ts | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 std/strings/encode.ts (limited to 'std/strings/encode.ts') diff --git a/std/strings/encode.ts b/std/strings/encode.ts deleted file mode 100644 index 285305613..000000000 --- a/std/strings/encode.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** A default TextEncoder instance */ -export const encoder = new TextEncoder(); - -/** Shorthand for new TextEncoder().encode() */ -export function encode(input?: string): Uint8Array { - return encoder.encode(input); -} -- cgit v1.2.3