# bundle-name

> Get bundle name from a bundle identifier (macOS): `com.apple.Safari` → `Safari`

Latest version **4.1.0** (published 2023-12-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install bundle-name
pnpm add bundle-name
yarn add bundle-name
bun add bundle-name
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.0 |
| Published | 2023-12-18 |
| First published | 2014-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/bundle-name) |
| Module format | ESM |
| Node | >=18 |
| Dependencies | 1 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | macos, plist, applescript, bundle, bundleid, bundlename, id, identifier, CFBundleName, CFBundleIdentifier, uti |

## Links

- npm: https://www.npmjs.com/package/bundle-name
- Repository: https://github.com/sindresorhus/bundle-name
- Homepage: https://github.com/sindresorhus/bundle-name#readme
- Issues: https://github.com/sindresorhus/bundle-name/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/bundle-name

## Dependencies (1)

- [run-applescript](https://npm.io/package/run-applescript.md) ^7.0.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 4.1.0 (latest) — 2023-12-18
- 4.0.0 — 2023-08-31
- 3.0.0 — 2021-03-07
- 2.0.1 — 2015-10-08
- 2.0.0 — 2015-10-08
- 1.0.1 — 2014-08-18
- 1.0.0 — 2014-08-14
- 0.1.1 — 2014-01-27
- 0.1.0 — 2014-01-27

## README

# bundle-name

> Get [bundle name](https://developer.apple.com/library/Mac/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/plist/info/CFBundleName) from a [bundle identifier](https://developer.apple.com/library/Mac/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/plist/info/CFBundleIdentifier) (macOS): `com.apple.Safari` → `Safari`

## Install

```sh
npm install bundle-name
```

## Usage

```js
import bundleName from 'bundle-name';

console.log(await bundleName('com.apple.Safari'));
//=> 'Safari'
```

## Related

- [bundle-name-cli](https://github.com/sindresorhus/bundle-name-cli) - CLI for this module
- [bundle-id](https://github.com/sindresorhus/bundle-id) - Get bundle identifier from a bundle name

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