An alert function for console.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
LICENSE
README.md
index.js
package.json

README.md

console.alert

Gives console an extra method: alert()

npm install console.alert

require('console.alert')();
console.alert('Hello World!');

...logs:

 ████████████████████████████
 ║                          ║
 ║   The terminal says:     ║
 ║       Hello World!       ║
 ║                   ╔════╗ ║
 ║                   ║ OK ║ ║
 ║                   ╚════╝ ║
 ╚══════════════════════════╝