MCPcopy Create free account
hub / github.com/SBoudrias/Inquirer.js / errorCode

Function errorCode

tools/package/src/workspaces.ts:20–24  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

18};
19
20function errorCode(error: unknown) {
21 return error && typeof error === 'object' && 'code' in error
22 ? String(error.code)
23 : undefined;
24}
25
26function workspacePackagePattern(pattern: string) {
27 const isNegated = pattern.startsWith('!');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected