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

recursive-fs

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recursive-fs

Asynchronous recursive file system operations

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
114K
decreased by-17.96%
Maintainers
1
Weekly downloads
 
Created

What is recursive-fs?

The recursive-fs npm package provides utilities for performing recursive file system operations such as copying and removing directories and their contents.

What are recursive-fs's main functionalities?

Recursive Copy

This feature allows you to recursively copy the contents of one directory to another. The code sample demonstrates how to use the `copy` method to copy all files and subdirectories from 'sourceDir' to 'destDir'.

const rfs = require('recursive-fs');

rfs.copy('sourceDir', 'destDir', function(err) {
  if (err) {
    console.error('Error during copy:', err);
  } else {
    console.log('Copy completed successfully');
  }
});

Recursive Remove

This feature allows you to recursively remove a directory and all of its contents. The code sample demonstrates how to use the `remove` method to delete 'targetDir' and all files and subdirectories within it.

const rfs = require('recursive-fs');

rfs.remove('targetDir', function(err) {
  if (err) {
    console.error('Error during remove:', err);
  } else {
    console.log('Remove completed successfully');
  }
});

Other packages similar to recursive-fs

Keywords

FAQs

Package last updated on 15 Mar 2020

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