# make-executable

> Set the executable bits on a file

Latest version **2.0.2** (published 2023-01-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install make-executable
pnpm add make-executable
yarn add make-executable
bun add make-executable
```

## Health

**Score 30/100 (F)** — status: abandoned.

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2023-01-06 |
| First published | 2020-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Connor White |
| Maintainers | bconnorwhite |
| Keywords | make, executable, set, bits, chmod, x, +x, fs, fs-safe, safe |

## Links

- npm: https://www.npmjs.com/package/make-executable
- Repository: https://github.com/bconnorwhite/make-executable
- npm.io page: https://npm.io/package/make-executable

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 2.0.2 (latest) — 2023-01-06
- 2.0.1 — 2023-01-06
- 2.0.0 — 2023-01-06
- 1.0.2 — 2022-12-21
- 1.0.1 — 2020-10-04
- 1.0.0 — 2020-10-04

## README

<!--BEGIN HEADER-->
<div id="top" align="center">
  <h1>make-executable</h1>
  <img alt="Platform: Node" src="https://img.shields.io/badge/Node-%23339933?logo=node.js&logoColor=white" />
  <a href="https://npmjs.com/package/make-executable">
    <img alt="npm" src="https://img.shields.io/npm/v/make-executable.svg">
  </a>
  <a href="https://github.com/bconnorwhite/make-executable">
    <img alt="typescript" src="https://img.shields.io/github/languages/top/bconnorwhite/make-executable.svg">
  </a>
  <a href='https://coveralls.io/github/bconnorwhite/make-executable?branch=master'>
    <img alt="Coverage Status" src="https://img.shields.io/coveralls/github/bconnorwhite/make-executable.svg?branch=master">
  </a>
</div>

<br />

<blockquote align="center">Set the executable bits on a file.</blockquote>

<br />

_If I should maintain this repo, please ⭐️_
<a href="https://github.com/bconnorwhite/make-executable">
  <img align="right" alt="GitHub stars" src="https://img.shields.io/github/stars/bconnorwhite/make-executable?label=%E2%AD%90%EF%B8%8F&style=social">
</a>

_DM me on [Twitter](https://twitter.com/bconnorwhite) if you have questions or suggestions._
<a href="https://twitter.com/bconnorwhite">
  <img align="right" alt="Twitter Follow" src="https://img.shields.io/twitter/url?label=%40bconnorwhite&style=social&url=https%3A%2F%2Ftwitter.com%2Fbconnorwhite">
</a>

---
<!--END HEADER-->

## Installation

<details open>
  <summary>
    <img  src="https://img.shields.io/badge/yarn-2C8EBB?logo=yarn&logoColor=white" alt="Yarn" />
  </summary>

```sh
yarn add make-executable
```

</details>
<details open>
  <summary>
    <img src="https://img.shields.io/badge/npm-CB3837?logo=npm&logoColor=white" alt="NPM" />
  </summary>

```sh
npm install make-executable
```

</details>
<details open>
  <summary>
    <img src="https://img.shields.io/badge/pnpm-F69220?logo=pnpm&logoColor=white" alt="PNPM" />
  </summary>

```sh
pnpm add make-executable
```

</details>

## API

```ts
import { makeExecutable, makeExecutableSync } from "make-executable";

function makeExecutable(path: string): Promise<boolean | undefined>;

function makeExecutableSync(path: string): boolean | undefined;
```

<!--BEGIN FOOTER-->

<br />

<h2>Dev Dependencies<a href="https://www.npmjs.com/package/make-executable?activeTab=dependencies"><img align="right" alt="dependencies" src="https://img.shields.io/librariesio/release/npm/make-executable.svg"></a></h2>

- [@types/mock-fs](https://www.npmjs.com/package/@types/mock-fs): TypeScript definitions for mock-fs
- [@types/node](https://www.npmjs.com/package/@types/node): TypeScript definitions for Node.js
- [autorepo](https://www.npmjs.com/package/autorepo): Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.
- [mock-fs](https://www.npmjs.com/package/mock-fs): A configurable mock file system.  You know, for testing.


<br />

<h2 id="license">License <a href="https://opensource.org/licenses/MIT"><img align="right" alt="license" src="https://img.shields.io/npm/l/make-executable.svg"></a></h2>

[MIT](https://opensource.org/licenses/MIT) - _The MIT License_
<!--END FOOTER-->

<br />

## Related Packages

- [fs-safe](https://www.npmjs.com/package/fs-safe): A simple fs wrapper that doesn't throw
- [read-file-safe](https://www.npmjs.com/package/read-file-safe): Read files without try catch
- [write-file-safe](https://www.npmjs.com/package/write-file-safe): Write files, and parent directories if necessary
- [remove-file-safe](https://www.npmjs.com/package/remove-file-safe): Remove a file without try catch
- [watch-file-safe](https://www.npmjs.com/package/watch-file-safe): Watch a file for changes

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