文件名称:express-truepath:将url解析为根路径
文件大小:5KB
文件格式:ZIP
更新时间:2024-03-09 03:00:12
JavaScript
表达真实路径 将网址解析为根文件。 安装 npm install express-truepath 文献资料 var path = require ( "path" ) ; var truePath = require ( "express-truepath" ) ; var rootPath = path . resolve ( "." , "public" ) ; var config = { // this is default value index : [ "index.html" , "default.html" ] , follow_symlink : true , // while it set to true, it will identify symlink as file or folder and follow its link. Otherwise
【文件预览】:
express-truepath-master
----test.js(56B)
----LICENSE(1KB)
----README.md(2KB)
----.gitignore(2KB)
----index.js(5KB)
----package-lock.json(81B)
----package.json(608B)