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'
optional
probe: ChannelProbe