nodejs中的path模块

摘要

本文主要讲述了:

  1. 作用
  2. path.basename(path[, ext])
  3. path.delimiter
  4. path.sep
  5. path.dirname(path)
  6. path.extname(path)
  7. path.format(pathObject)
  8. path.isAbsolute(path)
  9. path.join([…paths])
  10. path.normalize(path)
  11. path.parse(path)
  12. path.relative(from, to)
  13. path.resolve([…paths])

阅读全文