1.0.4 • Published 3 years ago
pauli-alerts v1.0.4
pauli-alerts
Install
npm install pauli-alerts
Usage
const alert = requires('pauli-alerts');
// Prodvide the type, ms, and name options
alert({ type: "success", msg: "All done!", name: `Done`});
// Prints: ✔ Done All done!
alert({ type: "warning", msg: "Tomorrow it's going to be hot. Get up early!",});
// Prints: ⚠ WARNING Tomorrow it's going to be hot. Get up early!
alert({ type: "info", msg: "No Hurricanes in the Gulf of Mexico",});
// Prints: ℹ INFO No Hurricanes in the Gulf of Mexico
alert({ type: "error", msg: "Oops that doesn't work. ",name: `Mistake!`});
//Prints: ✖ Mistake! Oops that doesn't work.
API
alert(options)
> options
Type: object Default {}
You can specify the options below.
> type
Type: string Default: error
> msg
Type: string Default: You forgot to define all options.
> name
Type: string Default: ''
Code of Conduct
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
History
This is an example project of the NodeJS CLI course by Ahmad Awais