Files
Marc 721c919c7b ChibraxOS 2
Changes:
- kernel 6.0.2
- Broken init scripts
- Switch to bun for better peroformance an easier ffi
- Removed grup
- Efi support without graphics (at least graphics werent tested)
- Suppression de toutes les dépendance non libc
- new splash
- broken audio
- typescript support
- ls rewritten to be more reliable
2022-10-22 13:47:33 +02:00

19 lines
406 B
JavaScript

import * as fs from 'fs'
if(process.argv.length >= 3){
try{
const content = fs.readFileSync(process.argv[3], {encoding: 'utf-8'});
console.log(content)
}
catch(e){
switch(e.code){
case "ENOENT":
console.error(`file "${process.argv[3]}" does not exist.`);
break;
default:
console.error(`error: code ${e.code}`)
}
}
}