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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@grubbylee/tiny-message-plus

v0.2.0

Published

A standalone TinyVue-style Message component/plugin for Vue 3.

Readme

@grubbylee/tiny-message-plus

一个独立目录开发的 Vue3 Message 扩展包,使用方式接近 TinyVue 的全局消息能力。

安装

npm i @grubbylee/tiny-message-plus

在项目中使用

import { createApp } from 'vue'
import App from './App.vue'
import { TinyMessagePlugin } from '@grubbylee/tiny-message-plus'

const app = createApp(App)
app.use(TinyMessagePlugin, {
  duration: 3000,
  offset: 16,
  max: 5,
  zIndex: 5000,
  safeTop: 'auto'
})
app.mount('#app')

调用方式

1) 组合式/普通模块调用

import { message } from '@grubbylee/tiny-message-plus'

message.success('保存成功')
message.error({ message: '保存失败', showClose: true })
const loading = message.loading({ message: '提交中...', showClose: true })

setTimeout(() => {
  loading.close()
}, 1600)

2) 组件内通过 this 调用

this.$message.info('提示内容')
this.$tinyMessage.warning('请先完善信息')

API

  • message(options | text)
  • message.info(options | text)
  • message.success(options | text)
  • message.warning(options | text)
  • message.error(options | text)
  • message.loading(options | text)(默认不自动关闭)
  • message.close(id)
  • message.closeAll()
  • message.config({ duration, offset, max, zIndex, safeTop, appendTo })

options 字段:

  • message: string 消息文本
  • status?: 'info' | 'success' | 'warning' | 'error' | 'loading'
  • duration?: number 自动关闭时长(ms)
  • showClose?: boolean 是否显示关闭按钮
  • zIndex?: number
  • onClose?: () => void

config/plugin 额外字段:

  • safeTop?: number | 'auto' | string | (() => number)
    说明:消息顶部安全区域。默认 'auto',会自动避让页面顶部固定/吸顶 Header。
    示例:0(不避让)、'--app-header-height'(读取 CSS 变量)、() => 76(动态函数)。
  • appendTo?: string | HTMLElement
    说明:消息挂载容器,默认 'body'

本地开发

cd extensions/tiny-message-plus
npm install
npm run build

联调 Demo

cd extensions/tiny-message-plus
npm run demo

默认打开地址:http://localhost:5179

发布 npm

cd extensions/tiny-message-plus
npm run build
npm publish --access public