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

ruanm-popup

v1.0.2

Published

将alert/confirm/prompt转换为VBScript的MsgBox/InputBox

Readme

ruanm-popup

将浏览器的 alertconfirmprompt 函数转换为 Windows 系统的 VBScript MsgBoxInputBox

功能特性

  • alert(message, title): 显示一个提示对话框

    • message: 对话框显示的消息
    • title: 对话框标题,默认为 "提示"
  • confirm(message, title, icon, buttons): 显示一个确认对话框,返回布尔值

    • message: 对话框显示的消息
    • title: 对话框标题,默认为 "确认"
    • icon: 图标类型,默认为 16(警告图标)
    • buttons: 按钮类型,默认为 1(确定按钮)
  • prompt(message, defaultValue, title): 显示一个输入对话框,返回输入值或 null

    • message: 对话框显示的消息
    • defaultValue: 默认输入值,默认为空字符串
    • title: 对话框标题,默认为 "输入"

安装

# 使用 npm
npm install ruanm-popup

# 使用 pnpm
pnpm add ruanm-popup

# 使用 yarn
yarn add ruanm-popup

使用示例

const { alert, confirm, prompt } = require('ruanm-popup');

// 显示提示对话框
alert('Hello, World!');

// 显示确认对话框
const isConfirmed = confirm('你确定要执行此操作吗?');
console.log('用户选择:', isConfirmed);

// 显示输入对话框
const name = prompt('请输入你的名字:', '默认名字');
console.log('用户输入:', name);

注意事项

  • 此包仅在 Windows 系统上工作,因为它依赖于 VBScript
  • 调用函数时会创建临时 VBScript 文件并执行,执行完成后会自动删除
  • 支持的系统:Windows XP 及以上版本

作者

RuanMingze

许可证

MIT