Files
node/doc/api
James M Snell ef0230abaf 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-16 08:52:17 +02:00
..
2025-05-05 10:37:49 -03:00
2025-06-09 15:36:15 +02:00
2025-06-09 15:36:15 +02:00
2025-05-02 17:06:42 -03:00
2023-04-23 13:34:08 +00:00
2024-11-01 03:43:53 +00:00
2025-06-09 15:36:15 +02:00
2025-06-09 15:36:15 +02:00
2025-06-09 15:36:15 +02:00
2025-06-09 15:36:15 +02:00
2025-05-02 17:05:57 -03:00
2025-06-09 15:36:15 +02:00
2025-05-02 17:07:07 -03:00
2024-11-20 10:10:38 +00:00
2025-05-31 13:30:52 +02:00
2025-06-09 15:36:15 +02:00
2025-06-09 15:36:15 +02:00
2025-06-09 15:36:15 +02:00
2025-06-09 15:36:15 +02:00
2025-05-02 17:06:42 -03:00
2025-06-16 08:52:17 +02:00
2025-06-09 15:36:15 +02:00
2025-05-05 10:37:49 -03:00
2024-07-21 15:44:27 +00:00