refactor: replace Bun APIs with Node.js equivalents
Replace Bun.argv with process.argv, Bun.file() with fs/promises, Bun.stringWidth with string-width package, and Bun.wrapAnsi with wrap-ansi package for better compatibility.
This commit is contained in:
parent
b212fee200
commit
0c71e2cd54
7 changed files with 39 additions and 18 deletions
2
index.ts
2
index.ts
|
|
@ -7,7 +7,7 @@ import { Conversation } from "./src/conversation";
|
|||
import Renderer from "./src/render";
|
||||
|
||||
const { values: args, positionals } = parseArgs({
|
||||
args: Bun.argv,
|
||||
args: process.argv,
|
||||
options: {
|
||||
model: { type: "string" },
|
||||
m: { type: "string" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue