Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
denoland/stdWorks with
•JSR Score100%•This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




Downloads12,296/wk
•Publisheda year ago (1.0.6)
Utilities to manipulate Uint8Arrays that are not built-in to JavaScript
Helper functions for working with
Uint8Array
byte slices.
import { concat, indexOfNeedle, endsWith } from "@std/bytes"; import { assertEquals } from "@std/assert"; const a = new Uint8Array([0, 1, 2]); const b = new Uint8Array([3, 4, 5]); const c = concat([a, b]); assertEquals(c, new Uint8Array([0, 1, 2, 3, 4, 5])); assertEquals(indexOfNeedle(c, new Uint8Array([2, 3])), 2); assertEquals(endsWith(c, b), true);
Built and signed on
GitHub Actions
Add Package
deno add jsr:@std/bytes
Import symbol
import * as bytes from "@std/bytes";
Import directly with a jsr specifier
import * as bytes from "jsr:@std/bytes";