npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bootoast

v1.1.4

Published

> A [*Boot*][0]strap T[*oast*][1]er library. > > Make your toast notifications with **Bootstrap 3 or 4** `alert`s.

Downloads

2,112

Readme

NPM version NPM downloads License

Codacy Badge Maintainability

Bootoast 🔥

A Bootstrap Toaster library.

Make your toast notifications with Bootstrap 3 or 4 alerts.

Demo!

Default Settings

bootoast.toast({
    message: 'Bootoast!',
    type: 'info',
    position: 'bottom-center',
    icon: null,
    timeout: null,
    animationDuration: 300,
    dismissible: true
});

Options Settings

To use your own settings, take the default example above and replace with your values. You can also remove the keys you will not change.

Option | Default Value | Descrition :--- | :--- | :--- message | 'Helo!' | Any, any, HTML String! type | 'info' | A raw string that can be any of Bootstrap 3 alert type classes without the alert- preffix. Available types. icon | based on choosen type OR undefined | An icon following the standard Bootstrap 3 glyphicons name without the glyphicon- preffix. Icons choosen by type. position | 'bottom-center' | A raw string with two segments of align separated by hypehn follo0wing the pattern: vertical-horizontal. Supported positions. timeout | false | The time in seconds for hide the notification (.alert element). If false or 0, the notification will not auto-hide. dismissible | true | Shows or hides the dismiss × button. It can be true or false. animationDuration | 300 | The notification hide animation duration in milliseconds (ms).

Supported Types

By default, Bootoast supports all Bootstrap 3 alert types:

  • info
  • success
  • warning
  • danger

See more about Bootsrap alerts.

Supported Positions

Supported | Sinonymus :---: | :---: top-center | top top-left | left-top top-right | right-top bottom-center | bottom bottom-left | left-bottom bottom-right | right-bottom

Icon Defaults

By default, if it's not defined, it will turn into an icon choosen by the type:

Bootoast type | Bootstrap icon :---: | :---: warning | exclamation-sign success | ok-sign danger | remove-sign info | info-sign

Versioning

Closest as possible to semver (Semantic Versioning).


Good Luck. :-)