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

Function getOperatingSystem

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

Source from the content-addressed store, hash-verified

376}
377
378function getOperatingSystem(): string {
379 switch (process.platform) {
380 case 'darwin': {
381 return 'macOS';
382 }
383 case 'win32': {
384 return 'Windows';
385 }
386 case 'linux': {
387 return 'Linux';
388 }
389 case 'freebsd': {
390 return 'FreeBSD';
391 }
392 case 'openbsd': {
393 return 'OpenBSD';
394 }
395 case 'aix': {
396 return 'AIX';
397 }
398 default: {
399 return process.platform;
400 }
401 }
402}
403
404async function _trackStats() {
405 // Handle the stats

Callers 1

_trackStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected