How to use the hostile.writeFile function in hostile

To help you get started, we’ve selected a few hostile 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 bbeldame / local.dev / index.js View on Github external
function hostileRemove(lines, port) {
      // Try to remove entry, if it exists
      const filteredLines = lines.filter(filterFunc, { port });
      return hostile.writeFile(filteredLines, () => {
        resolve(ip);
      });
    }

hostile

Simple /etc/hosts manipulation

MIT
Latest version published 10 months ago

Package Health Score

64 / 100
Full package analysis