MCPcopy
hub / github.com/Unitech/pm2 / abbrev

Function abbrev

lib/completion.js:121–123  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

119}
120
121function abbrev(o) { return function(it) {
122 return new RegExp('^' + o.last.replace(/^--?/g, '')).test(it);
123}}
124
125// output the completion.sh script to the console for install instructions.
126// This is actually a 'template' where the package name is used to setup

Callers 1

completion.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…