function detect
detect(probe?: ChannelProbe): InstallChannel

Resolves the channel this process is running from.

import * as Channel from './channel.ts';

Channel.detect({ execPath: '/opt/qunitx/qunitx', isDeno: true }).kind; // 'standalone'
Channel.detect({ execPath: '/usr/bin/node', modulePath: '/app/lib/commands/upgrade/channel.ts' }).kind; // 'source'

Parameters

optional
probe: ChannelProbe

Return Type

Usage

import { detect } from "lib/commands/upgrade/channel.ts";