bottom-tip

0.1.5 • Public • Published

Bottom Tip(an at-bottom message tip)

Note: you have to maintain logs manually with this module.

Prototype https://youtu.be/wjLxXS0CV4k

I intented to replace webpack-hud with it but it turned out to be not as useful as webpack-hud since messages from Webpack is quite messy.

Usage

npm i --save-dev bottom-tip
import render from "bottom-tip";

render("warn", "some warning message");

setTimeout(function() {
  render("inactive", null);
}, 2000);

Types:

  • inactive
  • ok
  • ok~(show and then hide)
  • warn
  • error

Develop

Try this project:

yarn vite
# open http://localhost:3000

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i bottom-tip

Weekly Downloads

82

Version

0.1.5

License

MIT

Unpacked Size

20.5 kB

Total Files

17

Last publish

Collaborators

  • jiyinyiyong