JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q38215F
  • License ISC

A lightweight javascript toast library with no dependencies and 1 KB Size.

Package Exports

  • js-toastr

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (js-toastr) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

js-toastr

A lightweight javascript toast library with no dependencies and 1 KB Size.

Install


# You can install js-toastr with npm
$ npm install --save js-toastr
 
# Alternatively you can use Yarn
$ yarn add js-toastr
 
# Another option is to use Bower
$ bower install js-toastr

// using ES6 modules
import toastr from 'js-toastr'
 
// using CommonJS modules
var toastr = require('js-toastr')

Copy or import css from toast.css

Usage


toastr.message('Welocome to tiny toast library', 'success', 3000);
toastr.message('Welocome to tiny toast library', 'error', 3000);
toastr.message('Welocome to tiny toast library', 'info', 3000);
toastr.message('Welocome to tiny toast library', 'warning', 3000);