AgentStack
SKILL verified MIT Self-run

Bun Convert an ArrayBuffer to a Buffer

skill-jarle-bun-skills-bun-guides-binary-arraybuffer-to-buffer · by jarle

Convert an ArrayBuffer to a Buffer

No reviews yet
0 installs
8 views
0.0% view→install

Install

$ agentstack add skill-jarle-bun-skills-bun-guides-binary-arraybuffer-to-buffer

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Bun Convert an ArrayBuffer to a Buffer? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Convert an ArrayBuffer to a Buffer

The Node.js Buffer API predates the introduction of ArrayBuffer into the JavaScript language. Bun implements both.

Use the static Buffer.from() method to create a Buffer from an ArrayBuffer.

```ts theme={"theme":{"light":"github-light","dark":"dracula"}} const arrBuffer = new ArrayBuffer(64); const nodeBuffer = Buffer.from(arrBuffer);


***

To create a `Buffer` that only views a portion of the underlying buffer, pass the offset and length to the constructor.

```ts  theme={"theme":{"light":"github-light","dark":"dracula"}}
const arrBuffer = new ArrayBuffer(64);
const nodeBuffer = Buffer.from(arrBuffer, 0, 16); // view first 16 bytes

See [Docs > API > Binary Data](/runtime/binary-data#conversion) for complete documentation on manipulating binary data with Bun.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.