mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
303 B
TypeScript
19 lines
303 B
TypeScript
import getos = require('getos');
|
|
|
|
getos((e, os) => {
|
|
if (e) {
|
|
return;
|
|
}
|
|
|
|
const thisOs: getos.Os = os;
|
|
|
|
if (os.os === 'linux') {
|
|
let str: string;
|
|
let strn: string | undefined;
|
|
|
|
str = os.dist;
|
|
str = os.release;
|
|
strn = os.codename;
|
|
}
|
|
});
|