Skip to content

deps.check

Liatir.deps.check() checks whether one command-line binary is available in PATH.

Signature

ts
check(binary: string): Promise<DepCheckResult>

Example

ts
const samtools = await Liatir.deps.check('samtools');

if (!samtools.available) {
  console.warn('Samtools is not available.');
}

Result

ts
type DepCheckResult = {
  available: boolean;
  binary: string;
  path: string | null;
  version: string | null;
};

Liatir — powerful bioinformatics on your machine.

By using this app, you agree to our Privacy Policy and Terms of Service.