MCPcopy Create free account
hub / github.com/npm/cli / path

Function path

workspaces/arborist/test/diff.js:22–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20const { format } = require('tcompare')
21
22const path = diff => normalizePath((diff.actual || diff.ideal).path)
23 .split(normalizedCWD).join('{CWD}')
24
25const formatDiff = obj =>
26 Object.assign(Object.create(obj.constructor.prototype), {

Callers 1

formatDiffFunction · 0.85

Calls 1

normalizePathFunction · 0.70

Tested by

no test coverage detected