1.0.10 • Published 10 years ago

alert-alert v1.0.10

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

npm version Build Status

Alert! Alert!

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

Demo

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
1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago