chmodr
like `chmod -R`
Last updated 8 years ago by isaacs .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install chmodr 
SYNC missed versions from official npm registry.

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');
  }
});

Current Tags

  • 1.2.0                                ...           latest (8 years ago)

9 Versions

  • 1.2.0                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
  • 0.1.2                                ...           11 years ago
  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           13 years ago
  • 0.0.1                                ...           14 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 9
Last Month 1
Dependencies (0)
None
Dev Dependencies (3)
Dependents (4)

Copyright 2013 - present © cnpmjs.org | Home |