MyGit

v6.1.0

thecodrr/fdir

版本发布时间: 2023-08-14 02:33:27

thecodrr/fdir最新发布版本:v6.3.0(2024-08-25 21:58:51)

withPathSeparator(separator: "/" | "\") 🆕

withPathSeparator option allows you enforcing a specific path separator regardless of what platform the code is running on. This is especially useful if your test snapshots contain paths as those snapshots will fail on Windows because Node.js uses \\ path separator on Windows by default.

For example:

const files = await new fdir().withFullPaths().withPathSeparator("/").crawl("node_modules").withPromise();

相关地址:原始地址 下载(tar) 下载(zip)

查看:2023-08-14发行的版本