- Version: v4.4.3
- Platform: Windows 7 64-bit
- Subsystem: path
https://nodejs.org/docs/v4.4.3/api/path.html#path_path_format_pathobject
Under path.format, the document said that:
If the base property is not supplied, a concatenation of the name property and the ext property will be used as the base property.
However, This feature seems not working properly. With following code:
varpath=require("path");varfile=path.format({root : "C:\\",dir : "C:\\path\\dir",ext : ".txt",name : "file"});console.log(file);I always get:
https://nodejs.org/docs/v4.4.3/api/path.html#path_path_format_pathobject
Under
path.format, the document said that:However, This feature seems not working properly. With following code:
I always get: