Skip to content
This repository was archived by the owner on Aug 18, 2026. It is now read-only.

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version Build Status

Alert! Alert!

Status: frozen. The last release was in 2018, and this package is deprecated on npm. Nobody maintains it, and it will get no more updates.

The library ships no runtime dependencies, so an install adds no vulnerable code to your project. The build tooling in devDependencies is from 2015 and does have known vulnerabilities, which matter only if you build the library yourself.

Alert! Alert! is a minimalist JavaScript growl-style notification library designed to run in modern browsers without external dependencies.

Install in Your Project

npm install alert-alert

Use

var type    = 'info',
    message = '<p>Something you oughta know!</p>',
    config  = { timeout: 7000 };

Alert.alert(type, message, config);

Test

npm test

This package uses Browserify, tape, PhantomJS, and tape-run for headless browser testing.

If attempting to run these tests on Windows, we first need to find and copy phantomjs.exe (nested in node_modules) to C:\Users\[UserName]\AppData\Roaming\npm, because of this old issue. I found the solution on this mocha-phantomjs issue.

Build

Clone this repo, then:

npm install
npm run build

About

Minimalist JavaScript growl-style notifications.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages