📌  相关文章
📜  什么是 require('path') - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:07.543000             🧑  作者: Mango

代码示例1
The path module provides utilities for working with file and directory paths.
It can be accessed using:
const path = require('path');

on POSIX;
path.basename('C:\\temp\\myfile.html');
// Returns: 'C:\\temp\\myfile.html'


On Windows:
path.basename('C:\\temp\\myfile.html');
// Returns: 'myfile.html'