MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / printVersions

Function printVersions

packages/cli/lib/version-helper.js:21–30  ·  view source on GitHub ↗

* Print @loopback/* versions * @param log - A function to log information

(log = console.log)

Source from the content-addressed store, hash-verified

19 * @param log - A function to log information
20 */
21function printVersions(log = console.log) {
22 const ver = cliPkg.version;
23 log('@loopback/cli version: %s', ver);
24 log('\n@loopback/* dependencies:');
25 for (const d in templateDeps) {
26 if (d.startsWith('@loopback/') && d !== '@loopback/cli') {
27 log(' - %s: %s', d, templateDeps[d]);
28 }
29 }
30}
31
32/**
33 * Check project dependencies against module versions from the cli template

Callers 2

checkDependenciesFunction · 0.85
mainFunction · 0.85

Calls 1

logFunction · 0.50

Tested by

no test coverage detected