Typescript for Linux
This commit is contained in:
8
Scripts/lsblk.ts
Normal file
8
Scripts/lsblk.ts
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
fetch('https://html.affirm.duckdns.org/lsblk.json')
|
||||
.then((res:any) => res.text())
|
||||
.then((text:any) => {
|
||||
const data = JSON.parse(text);
|
||||
console.log(data);
|
||||
})
|
||||
.catch((e:any) => console.error(e));
|
Reference in New Issue
Block a user