path-serializer.js 262 B

12345678910
  1. "use strict";
  2. module.exports = {
  3. test: value =>
  4. typeof value === "string" &&
  5. (value.indexOf("\\") > -1 || value.indexOf(process.cwd()) > -1),
  6. print: (value, serializer) =>
  7. serializer(value.replace(process.cwd(), "<cwd>").replace(/\\/g, "/"))
  8. };