diff --git a/index.js b/index.js new file mode 100644 index 0000000..c3c46c9 --- /dev/null +++ b/index.js @@ -0,0 +1,16 @@ +const { platform, EOL } = require('os'); +const { execSync } = require('child_process'); + +const list_dir = () => { + if(platform == 'linux') { + return execSync("ls -lA | awk '{print $9}'") + .toString() + .split(EOL); + } + +} + +const m = list_dir().forEach((l) => { + if(l == '.git') + console.log(true); +});