MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / getOpenCommitLatestVersion

Function getOpenCommitLatestVersion

src/version.ts:4–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { execa } from 'execa';
3
4export const getOpenCommitLatestVersion = async (): Promise<
5 string | undefined
6> => {
7 try {
8 const { stdout } = await execa('npm', ['view', 'opencommit', 'version']);
9 return stdout;
10 } catch (_) {
11 outro('Error while getting the latest version of opencommit');
12 return undefined;
13 }
14};

Callers 1

checkIsLatestVersionFunction · 0.90

Calls 1

execaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…