MCPcopy Create free account
hub / github.com/unconed/TermKit / trail

Function trail

Node/shell/autocomplete.js:120–125  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

118
119 // Trailing slashes.
120 function trail(path) {
121 if (!(/\/$/(path))) {
122 path += '/';
123 }
124 return path;
125 }
126
127 // Normalize context.
128 path = trail(path || process.cwd());

Callers 1

autocomplete.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected