FinepherFinepher
AR
Programming 2 min read

Mind Blowing Features of Bun 1.2

Asha Vardhan

Asha Vardhan

February 19, 2025

Bun 1.2.1 is out! It's faster, more optimized, and packed with mind-blowing features that take performance to the next level.

Bun now getting famous and many companies are adopting it as their primary runtime environment instead of node. They recently released Bun 1.2 and other than speed, there are some cool features you might like it

Run C within Javascript

Now you can run C or C++ within js. if there is any CPU utilisation task. you can run without any additional configuration.

Build in AWS S3 support

You can use S3 directly on your project without any additional packages and it's more optimized for speed.

import { s3 } from "bun";

const file = s3.file("folder/my-file.txt");
// file instanceof Blob

const content = await file.text();

Postgres support

If you are using Bun. you don't need any other ORM for Postgress since Bun providing a faster one

import { sql } from "bun";

const users = [
  { name: "Alice", age: 25 },
  { name: "Bob", age: 65 },
];

await sql`
  INSERT INTO users (name, age)
  VALUES ${sql(users)}
`;

CSS parser

Bun provides a CSS parser derived from the popular library LightningCSS. Bun CSS bundlers combine multiple CSS files and assets referenced using directives like url, @import, @font-face, into a single CSS file, you can send to browsers, avoiding a waterfall of network requests.

Conclusion

I have just listed what I liked, More features are included in Bun 1.2 and 1.2.1 read more here. thank you for reading

Related Blogs

Related Blogs

The Hidden Dangers of SVG: Why Your "Safe" Image Format Can Hack Your Website
Cybersecurity
June 19, 2026

The Hidden Dangers of SVG: Why Your "Safe" Image Format Can Hack Your Website

SVG (Scalable Vector Graphics) is loved by developers and designers for its scalability, small file size, and crisp rendering. But behind its innocent XML-based appearance lies one of the most powerful vectors for Cross-Site Scripting (XSS) attacks.

Understanding .env in Node.js
DevOps
May 17, 2026

Understanding .env in Node.js

When building a Node.js app, you’ll often see a file called .env. At first, it may look confusing, but it’s actually one of the most important parts of managing your application properly.

How Kali Linux Helps Protect Your Web Applications, eCommerce Stores, and API
Cybersecurity
May 7, 2026

How Kali Linux Helps Protect Your Web Applications, eCommerce Stores, and API

Running a website, online store, or API is exciting, but it also comes with security risks. Hackers are always looking for weak points to steal data, damage websites, or interrupt services. This is why businesses need strong security tools to stay protected.