npm install bundle-name

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

About bundle-name

The npm package "bundle-name" provides a streamlined method for developers to retrieve the human-readable name of an application from its bundle identifier on macOS. This functionality is crucial for developers who need to interact programmatically with different applications across macOS environments. For instance, converting `com.apple.Safari` to `Safari` simplifies the process of app identification, making it more intuitive and manageable. The package supports a wide range of macOS applications, ensuring broad usability. By using "bundle-name", developers can enhance their applications' interoperability with the macOS ecosystem, leading to more robust and user-friendly software solutions.

To utilize this tool in your project, the process begins with the simple command `npm install bundle-name`. Once installed, it allows developers to programmatically extract an application's name using its bundle identifier, a common requirement for tasks involving macOS app management or automation. The ease of installation and implementation provided by "bundle-name" makes it an excellent choice for developers looking to optimize their workflow and reduce complexity in their codebases. The package's reliability and efficiency in fetching application names from bundle identifiers can significantly streamline development processes that depend on accurate identification and handling of macOS applications.

More from sindresorhus

sindresorhus npm packages

Find the best node modules for your project.

Search npm

path-key

Get the PATH environment variable key...

Read more
,

slash

Convert Windows backslash paths to slash...

Read more
,

is-wsl

Check if the process is running inside Windows Subsystem for Linux (Bash on...

Read more
,

log-symbols

Colored symbols for various log levels...

Read more
,

default-browser-id

Get the bundle identifier of the default browser (macOS). Example: com.apple...

Read more
,

run-applescript

Run AppleScript and get the...

Read more
,

default-browser

Get the default...

Read more
,

bundle-name

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

Read more
,

os-name

Get the name of the current operating system...

Read more
,

windows-release

Get the name of a Windows version from the release number: `5.1...

Read more
,

macos-release

Get the name and version of a macOS release from the Darwin...

Read more

Dependencies

Core dependencies of this npm package and its dev dependencies.

run-applescript, ava, xo

Documentation

A README file for the bundle-name code repository. View Code

bundle-name

Get bundle name from a bundle identifier (macOS): com.apple.SafariSafari

Install

npm install bundle-name

Usage

import bundleName from 'bundle-name';

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

Related