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 🙏

© 2025 – Pkg Stats / Ryan Hefner

screen-area-selection

v1.0.1

Published

这是一个屏幕区域选择提示工具,不包含截图,录制视频等功能。

Readme

说明

这是一个屏幕区域选择提示工具,不包含截图,录制视频等功能。

只是引入后,在网页内显示一个区域选择窗口。

具体业务逻辑代码需要手动编写。

效果如下

使用方法

html + javascript

<body>
    <script type="module">
        import initScreenAreaAelection from './index.js'
        initScreenAreaAelection(document.body, {
            width: 500,
            height: 500,
            left: 0,
            top: 0,
            borderWidth: 1.5,
            borderColor: "#999",
            borderType: "dashed",
            blockColor: "#000",
            blockSize: 6,
            contentBgColor: 'unset',
            contentHoverBgColor: 'rgba(0,0,0,0.1)',
            text: '按下后可拖拽位置,松开后结束。',
            textSize: 8,
            textColor: 'white',
            screenLimiter: true,
            autoHide: false,
            autoHideTims: 1
        })
    </script>
</body>

参数说明

        initScreenAreaAelection(document.body, // 渲染的根元素
         {
            width: 500, // 默认宽度
            height: 500, // 默认高度
            left: 0, // 默认左侧距离
            top: 0, // 默认顶部距离
            borderWidth: 1.5, // 边框宽度
            borderColor: "#999", // 边框颜色
            borderType: "dashed", // 边框类型
            blockColor: "#000", // 上下左右四个角的颜色
            blockSize: 6, // 上下左右四个角的大小
            contentBgColor: 'unset', // 中间区域的背景色
            contentHoverBgColor: 'rgba(0,0,0,0.1)', // 鼠标放上后中间区域的背景色
            text: '按下后可拖拽位置,松开后结束。', // 中间区域显示提示文字
            textSize: 8, // 中间区域文字池逊
            textColor: 'white', // 文字颜色
            screenLimiter: true, // 是否可以溢出屏幕尺寸
            autoHide: false, // 是否自动隐藏
            autoHideTims: 1 // 自动隐藏时间 单位(秒)
        })