# cmd-extension

> Gets the right command file extension on Windows

Latest version **2.0.0** (published 2026-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install cmd-extension
pnpm add cmd-extension
yarn add cmd-extension
bun add cmd-extension
```

## Health

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

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2026-03-11 |
| First published | 2021-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=22.13 |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 104 |
| Author | Zoltan Kochan |
| Maintainers | zkochan |

## Links

- npm: https://www.npmjs.com/package/cmd-extension
- Repository: https://github.com/zkochan/packages/tree/main/cmd-extension
- Homepage: https://github.com/zkochan/packages/tree/main/cmd-extension#readme
- npm.io page: https://npm.io/package/cmd-extension

## Recent versions

- 2.0.0 (latest) — 2026-03-11
- 1.0.2 — 2021-09-28
- 1.0.1 — 2021-09-28
- 1.0.0 — 2021-09-28

## README

# cmd-extension

> Gets the right command file extension on Windows

[![npm version](https://img.shields.io/npm/v/cmd-extension.svg)](https://www.npmjs.com/package/cmd-extension)

## Installation

```sh
<npm|yarn|pnpm> add cmd-extension
```

## Usage

```js
'use strict'
const CMD_EXTENSION = require('cmd-extension')

console.log(CMD_EXTENSION)
//> .CMD
```

## License

[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io)

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