How to use the rimraf.promise function in rimraf

To help you get started, we’ve selected a few rimraf 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 expo / hyperinstall / src / Hyperinstall.js View on Github external
async removeNodeModulesDirAsync(name) {
    let nodeModulesPath = path.resolve(this.root, name, 'node_modules');
    await rimraf.promise(nodeModulesPath);
    console.log('Removed node_modules for "%s"\n', name);
  }
github syntaxhighlighter / syntaxhighlighter / build / setup-project.js View on Github external
  const ln = (source, dest) => rimraf.promise(dest).finally(() => exec(`ln -s ${source} ${dest} || true`));
  const linkNodeModulesIntoRepos = repo => ln(`${rootPath}/node_modules`, `${pathToRepo(repo)}/node_modules`);

rimraf

A deep deletion module for node (like `rm -rf`)

ISC
Latest version published 4 months ago

Package Health Score

83 / 100
Full package analysis