@malots/notification

notification package

Stats

StarsIssuesVersionUpdatedCreatedSize
@malots/notification
021.2.13 years ago3 years agoMinified + gzip package size for @malots/notification in KB

Readme

notification

Notification npm package

Specification

This package contains a class to be extends, this class is called Notification, and have methods to implement an error property.

Example

class Example extends Notification { constructor() { super(); } }

Methods

  • addError - Add an error with key and error
  • getError(key) - Get error
  • getAllErrors - Return json with all errors
  • isValid - Return if class don't have any error
  • countErrors - Return quantity of erros

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.