Thanks to visit codestin.com
Credit goes to github.com

Skip to content

isaacs/chmodr

Description

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

Install

npm i --save chmodr

Usage

import { chmodr, chmodrSync } from 'chmodr'
// or:
// const { chmodr, chmodrSync } = require('chmodr')

// async promise style
await chmodr('/var/www/my/test/folder', 0o777)
// sync immediate style
chmodrSync('/some/other/dir', 0o644)

About

Like `chmod -R` in node

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •