| 11 | const normalizePath = path => path.replace(/^\w:/, '').replace(/\\/g, '/') |
| 12 | const normalizedCWD = normalizePath(process.cwd()) |
| 13 | const formatNode = node => |
| 14 | node && Object.assign(Object.create(node.constructor.prototype), { |
| 15 | name: node.name, |
| 16 | path: normalizePath(node.path).split(normalizedCWD).join('{CWD}'), |
| 17 | integrity: node.integrity, |
| 18 | }) |
| 19 | |
| 20 | const { format } = require('tcompare') |
| 21 |
no test coverage detected