Lines Matching refs:fileURLToPath
957 ### `url.fileURLToPath(url)`
969 import { fileURLToPath } from 'url';
971 const __filename = fileURLToPath(import.meta.url);
974 fileURLToPath('file:///C:/path/'); // Correct: C:\path\ (Windows)
977 fileURLToPath('file://nas/foo.txt'); // Correct: \\nas\foo.txt (Windows)
980 fileURLToPath('file:///你好.txt'); // Correct: /你好.txt (POSIX)
983 fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX)
987 const { fileURLToPath } = require('url');
989 fileURLToPath('file:///C:/path/'); // Correct: C:\path\ (Windows)
992 fileURLToPath('file://nas/foo.txt'); // Correct: \\nas\foo.txt (Windows)
995 fileURLToPath('file:///你好.txt'); // Correct: /你好.txt (POSIX)
998 fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX)