Files
node/doc/api
James M Snell 3f6ad56846 url: add fileURLToPathBuffer API
The existing `fileURLToPath()` does not handle the case
where the input URL contains percent-encoded characters
that are not valid UTF-8 sequences. This can lead to
issues, for instance, when the URL is constructed
using file names in non-Unicode encodings (like
Shift-JIS). This commit introduces a new API,
`fileURLToPathBuffer()`, which returns a `Buffer`
representing the path, allowing for accurate
conversion of file URLs to paths without attempting
to decode the percent-encoded bytes into characters.

PR-URL: https://github.com/nodejs/node/pull/58700
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
2025-06-14 14:06:04 -07:00
..
2025-05-09 19:41:31 +00:00
2025-06-09 23:45:29 +02:00
2025-06-09 23:45:29 +02:00
2025-04-23 08:59:33 +00:00
…
2024-11-01 03:43:53 +00:00
2025-06-09 23:45:29 +02:00
2025-06-09 23:45:29 +02:00
2025-06-09 23:45:29 +02:00
2025-06-09 23:45:29 +02:00
2025-04-04 12:53:31 +00:00
…
2025-06-09 23:45:29 +02:00
2025-05-02 15:10:34 +02:00
2024-11-20 10:10:38 +00:00
2025-05-28 08:18:47 +00:00
2025-06-09 23:45:29 +02:00
2025-06-09 23:45:29 +02:00
2025-06-09 23:45:29 +02:00
2025-06-09 23:45:29 +02:00
2025-04-23 08:59:33 +00:00
2025-06-14 14:06:04 -07:00
2025-06-09 23:45:29 +02:00
2025-05-06 11:26:35 -03:00
2024-07-21 15:44:27 +00:00