# chmodr

> like `chmod -R`

Latest version **2.0.2** (published 2025-12-09) · BlueOak-1.0.0 license · 0 weekly downloads

## Install

```sh
npm install chmodr
pnpm add chmodr
yarn add chmodr
bun add chmodr
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2025-12-09 |
| First published | 2012-08-05 |
| Weekly downloads | 0 |
| License | BlueOak-1.0.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 0 |
| Unpacked size | 19.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 29 |
| Author | Isaac Z. Schlueter |
| Maintainers | isaacs |

## Links

- npm: https://www.npmjs.com/package/chmodr
- Repository: https://github.com/isaacs/chmodr
- Homepage: https://github.com/isaacs/chmodr#readme
- Issues: https://github.com/isaacs/chmodr/issues
- npm.io page: https://npm.io/package/chmodr

## Recent versions

- 2.0.2 (latest) — 2025-12-09
- 2.0.1 — 2025-12-09
- 2.0.0 — 2025-11-25
- 1.2.0 — 2018-09-18
- 1.1.0 — 2018-09-18
- 1.0.2 — 2015-10-14
- 1.0.1 — 2015-08-07
- 1.0.0 — 2015-08-07
- 0.1.2 — 2015-08-07
- 0.1.1 — 2015-05-20
- 0.1.0 — 2013-03-06
- 0.0.1 — 2012-08-05

## README

## Description

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

## Install

```
npm i --save chmodr
```

## Usage

```ts
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)
```

---
_Source: https://npm.io/package/chmodr · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
