How to use the web-ext-native-msg.removeDir function in web-ext-native-msg

To help you get started, we’ve selected a few web-ext-native-msg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github asamuzaK / withExEditorHost / modules / main.js View on Github external
const handleExit = code => {
  if (isDir(TMPDIR_APP)) {
    removeDir(TMPDIR_APP, TMPDIR);
  }
  if (code) {
    const msg = new Output().encode(hostMsg(`exit ${code}`, "exit"));
    msg && process.stdout.write(msg);
  }
};