ivanseidel / ivanseidel/node-draftlog

Does not work with bun.sh

Open
#14 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.2k
Forks
33
PR merge metrics
No merged PRs in 30d

Description

I have setup a minimal example with bun.sh:
```js
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

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the minimal example from index.cjs with both node index.cjs and bun index.cjs, using Bun 1.1.8 on the reported macOS setup if available. Compare the terminal output and trace the package behavior responsible for draft updates; done means the Bun run updates the existing line like the Node run.

Written by the indexing model from the issue text.

Assessment

Tech stack
bun, javascript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.