MCPcopy Create free account
hub / github.com/Kong/insomnia / getOperatingSystem

Function getOperatingSystem

packages/insomnia/src/entry.main.ts:388–412  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

386}
387
388function getOperatingSystem(): string {
389 switch (process.platform) {
390 case 'darwin': {
391 return 'macOS';
392 }
393 case 'win32': {
394 return 'Windows';
395 }
396 case 'linux': {
397 return 'Linux';
398 }
399 case 'freebsd': {
400 return 'FreeBSD';
401 }
402 case 'openbsd': {
403 return 'OpenBSD';
404 }
405 case 'aix': {
406 return 'AIX';
407 }
408 default: {
409 return process.platform;
410 }
411 }
412}
413
414async function _trackStats() {
415 // Handle the stats

Callers 1

_trackStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected