Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zkochan/rimraf

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zkochan/rimraf

rm -rf for Node. Similar to rimraf but returns a promise

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
184K
decreased by-15.34%
Maintainers
1
Weekly downloads
 
Created

What is @zkochan/rimraf?

@zkochan/rimraf is an npm package that provides a fast and efficient way to delete files and directories, including those that are read-only. It is a modern alternative to the traditional 'rimraf' package, offering better performance and additional features.

What are @zkochan/rimraf's main functionalities?

Delete a single file

This feature allows you to delete a single file. The callback function handles any errors that may occur during the deletion process.

const rimraf = require('@zkochan/rimraf');

rimraf('path/to/file.txt', (err) => {
  if (err) throw err;
  console.log('File deleted successfully');
});

Delete a directory and its contents

This feature allows you to delete a directory along with all its contents. The callback function handles any errors that may occur during the deletion process.

const rimraf = require('@zkochan/rimraf');

rimraf('path/to/directory', (err) => {
  if (err) throw err;
  console.log('Directory deleted successfully');
});

Delete read-only files and directories

This feature allows you to delete read-only files and directories. The 'glob' option is set to false to disable glob pattern matching.

const rimraf = require('@zkochan/rimraf');

rimraf('path/to/read-only-file-or-directory', { glob: false }, (err) => {
  if (err) throw err;
  console.log('Read-only file or directory deleted successfully');
});

Other packages similar to @zkochan/rimraf

FAQs

Package last updated on 17 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc