New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fix-bun

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fix-bun

fixes bun bug #20395 where the bun.lock file has trailing commas

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
1
-80%
Maintainers
1
Weekly downloads
 
Created
Source

bunx fix-bun

fixes the bun.lock file including trailing commas


usage

  • install it (bun i -g fix-bun)
  • run it in any project (bunx fix-bun)
  • profit

you can also specify paths by putting a bun.lock file in the arguments. you can also add a --silent/-S argument to make the command silent.


background

this pertains to the bun issue #20395 that i opened. as i explained to them, trailing commas are not part of the specification (while it rather says not to do it). furthermore, this destroys compatibility when you just need to JSON.parse the lockfile. importing the lockfile requires it to exist or requires that you add asynchronous code, which does not work well in some environments. on the other hand, requiring it destroys node.js compatibility (which is still critical because bun is missing key features).



made with ❤️ by VillainsRule

Keywords

bun

FAQs

Package last updated on 06 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts