How to use the rm-file.sync function in rm-file

To help you get started, we’ve selected a few rm-file 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 LinusU / scandium / lib / builder.js View on Github external
  const cleanup = () => cleanupFiles.map(file => path.join(directory, file)).forEach(rmFile.sync)
  const removeUnloadCleanupHandler = unload.add(cleanup)

rm-file

Remove a file

MIT
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis

Popular rm-file functions

Similar packages