bunnish
v0.1.0
Published
A subset of the `bun` API without a dependency on the `bun` runtime (i.e. usable in `node`).
Downloads
4
Readme
bunnish
A subset of the bun API without a dependency on the bun runtime (i.e. usable in node).
Example
import { bunnishFile } from "bunnish";
await bunnishFile("./.temp/intermediate/test.json").write(
JSON.stringify({ hello: "world" }, null, " "),
);
const { hello } = (await bunnishFile("./.temp/intermediate/test.json").json());
console.log(hello);