ivanseidel / node-draftlog

📜 Create mutable log lines into the terminal, and give life to your logs!
MIT License
1.25k stars 46 forks source link

Does not work with bun.sh #14

Open VityaSchel opened 2 months ago

VityaSchel commented 2 months ago

I have setup a minimal example with bun.sh:

const DraftLog = require('draftlog')
DraftLog(console)
var update = console.draft('Hi, my name is')
console.log('Something else')
new Promise(resolve => setTimeout(resolve, 1000)).then(() => {
  update('Hi, my name is Ivan!')
})

tried node index.cjs — it works tried bun index.cjs — it simply outputs Hi, my name is Ivan! on another line:

image

Bun version: 1.1.8 OS: macos 14.5 terminal: iterm

VityaSchel commented 2 months ago

I ended up switching to https://github.com/sindresorhus/log-update for now