UNPKG

tunnelmole

Version:

Tunnelmole, an open source ngrok alternative. Instant public URLs for any http/https based application. Available as a command line application or as an NPM dependency for your code. Stable and maintained. Good test coverage. Works behind firewalls

18 lines 530 B
import { version } from "../../version.js"; /** * Basic connection info, to be used for upgrade notifications and the like */ const connectionInfo = { isCli: false, isNpm: Boolean(process.env.npm_lifecycle_event), nodeVersion: process.version }; const setIsCli = (isCli) => { connectionInfo.isCli = isCli; }; const getConnectionInfo = () => { connectionInfo.tunnelmoleVersion = version; return connectionInfo; }; export { getConnectionInfo, setIsCli }; //# sourceMappingURL=connection-info-service.js.map