deno_std
deno_std copied to clipboard
The Deno Standard Library
**Is your feature request related to a problem? Please describe.** Current implementation is supporting http method discriminant probably covers most use-case, but there's also one more use-case which I feel...
**Describe the bug** Given the following valid archive: ```bash @lowlighter ➜ /tmp $ wget https://github.com/rustwasm/wasm-pack/releases/download/v0.13.0/wasm-pack-v0.13.0-x86_64-unknown-linux-musl.tar.gz ... @lowlighter ➜ /tmp $ tar -ztvf wasm-pack-v0.13.0-x86_64-unknown-linux-musl.tar.gz drwxrwxrwx 0/0 0 2024-07-01 18:54 wasm-pack-v0.13.0-x86_64-unknown-linux-musl/ -rwxrwxrwx...
```ts import { assertEquals } from "jsr:@std/assert@1"; const a = Deno.readFileSync(Deno.execPath()); assertEquals(a, new Uint8Array()); ``` `deno -R a.ts` ``` error: Uncaught (in promise) RangeError: Invalid array length if (Object.keys(a).length !==...
These function use atob and btoa internally and they oom easily with large strings Maybe instead they should use node:buffer (Buffer.from(i).toString("base64") Buffer.from(i,"base64"))
**Describe the bug** I've mentioned this before tangentially in a couple of issues ([ex](https://github.com/denoland/std/issues/5424#issuecomment-2232291988)), but it's probably worth its own issue. Use of locale-sensitive methods, such as `toLocaleLowerCase`, with an...
Fixes https://github.com/denoland/std/issues/5830 (2nd attempt, supersedes abandoned https://github.com/denoland/std/pull/5880). `transliterate` option is provided as a hook for transliteration libraries such as [`npm:any-ascii`](https://github.com/anyascii/anyascii), without requiring the transliteration library to re-implement word segmenting (which...
**Is your feature request related to a problem? Please describe.** `LogLevel` setup seems confusing to me. I need to use **"DEBUG"** keyword two times in order to lower default level....
**Describe the bug** Found on https://github.com/denoland/std/pull/5926#discussion_r1751285539 The code below throws a runtime error on `o.foo()` but type errors. ```ts import { pick } from "jsr:@std/collections/pick"; import { omit } from...
**Is your feature request related to a problem? Please describe.** Currently, Deno provides `Deno.readFile()`, which reads an entire file into a buffer, and `Deno.FsFile.read()`, which reads a portion of a...
**Is your feature request related to a problem? Please describe.** Thoughts on supporting something such as `Bun.password` - https://bun.sh/docs/api/hashing ? **Describe the solution you'd like** Perhaps std/crypto would be a...