New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chmodr

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chmodr

like `chmod -R`

1.2.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

Description

Has the same effect as the command line command: chmod -R.

Install

npm i --save chmodr

Usage

Takes the same arguments as fs.chmod()

chmodr(path, mode, callback)

  • path <string> | <Buffer> | <URL>
  • mode <integer>
  • callback <Function>
    • err <Error>

Example

var chmodr = require('chmodr');

chmodr('/var/www/my/test/folder', 0o777, (err) => {
  if (err) {
    console.log('Failed to execute chmod', err);
  } else {
    console.log('Success');
  }
});

FAQs

Package last updated on 18 Sep 2018

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