ÿØÿà JFIF ` ` ÿþ
|
Server : Apache System : Linux cloud.heroica.com.br 4.18.0-553.36.1.el8_10.x86_64 #1 SMP Wed Jan 22 03:07:54 EST 2025 x86_64 User : farolpborg ( 1053) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /var/www/node_services/apimetaexamepopular/node_modules/default-browser/ |
Upload File : |
export type Browser = {
/**
Human-readadable name of the browser.
*/
name: string;
/**
The unique identifier for the browser on the current platform:
- On macOS, it's the app's bundle identifier.
- On Linux, it's the desktop file identifier (from `xdg-mime`).
- On Windows, it's an invented identifier, because apps on Windows does not have identifiers.
*/
id: string;
};
/**
Get the default browser for the current platform.
@returns A promise for the browser.
@example
```
import defaultBrowser from 'default-browser';
console.log(await defaultBrowser());
//=> {name: 'Safari', id: 'com.apple.Safari'}
```
*/
export default function defaultBrowser(): Promise<Browser>;