repo_description: Package your Node.js project into an executable
repo_topics: binaries cli compiler nodejs
code: import { chmod, stat } from 'fs-extra';
  
  export async function plusx(file: string) {
    const s = await stat(file);
    const newMode = s.mode | 64 | 8 | 1;
  
    if (s.mode === newMode) {
      return;
    }
  
    const base8 = newMode.toString(8).slice(-3);
    await chmod(file, base8);
  }
  