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

fsutil

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fsutil

Synchronous filesystem utilities

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Filesystem Utilities

Synchronous Filesystem utilities for Node.js.

Requirements

  • mocha (if you want to run tests)

API

rm_rf(path)

Remove the directory on path recursively.

mkdir_p(path)

Create a directory and all its parent directories.

cp(src, dest)

Copy a file content src to dest.

cp_r(src, dest)

Copy file contents src to dest recursively.

ln_s(src, path)

Creates a symbolic link path which points to src.

ln_sf(src, path)

Creates a symbolic link path which points to src. If path already exists, overwrite it.

cd(path)

Change the current working directory.

pwd()

Get the current working directory.

chmod(mode, path)

Change permission bits on path.

chown(uid, gid, path)

Change the owner of the file or directory on path

chown_R(uid, gid, path)

Change the owner of the file or directory on path recursively.

fwrite_p(path, data)

Write a file on path after create all its parent directories if necessary.

Keywords

FAQs

Package last updated on 11 Sep 2012

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