0.0.7 • Published 1 year ago

cross-alert v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

cross-alert !!! under test and development

cross-alert is a cross-platform alert function library supporting Windows, Web, Linux, and macOS, with additional support for Bun. This library allows you to display alert messages in a consistent manner across different environments.

Installation

You can install cross-alert via npm:

npm install cross-alert

Usage

import { alert } from 'cross-alert'

// Show an alert message
await alert('This is an alert message!')
// Or optionally specify a title
await alert('This is an alert message!', { title: 'Alert' })

Platform Support

  • Windows: Uses MessageBox
  • Web: Uses window.alert
  • Linux: Uses zenity, kdialog, or xmessage. You may need to install these tools if they are not already present on your system.
  • macOS: Uses osascript

Development

To build the project, use:

npm run build

Contributing

Contributions are welcome! Please open an issue or submit a pull request to the development branch.

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago