Skip to content

Commit

Permalink
chore: remove deps, replace with util file
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Feb 2, 2021
1 parent 7b157f9 commit 603e471
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion deps.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tty_async.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { encode } from "./deps.ts";
import { encode } from "./util.ts";

import {
AsyncStream,
Expand Down
2 changes: 1 addition & 1 deletion tty_sync.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { encode } from "./deps.ts";
import { encode } from "./util.ts";

import {
SyncStream,
Expand Down
5 changes: 5 additions & 0 deletions util.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const encoder = new TextEncoder();

export function encode(input?: string): Uint8Array {
return encoder.encode(input);
}

0 comments on commit 603e471

Please sign in to comment.