npm.io
2.0.2 • Published 7 months ago

chmodr

Licence
BlueOak-1.0.0
Version
2.0.2
Deps
0
Size
20 kB
Vulns
0
Weekly
0
Stars
29

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)