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

os-sdk

v1.0.2

Published

Operating System Interaction SDK

Readme

Quickstart

====================

NPM version NPM Install Size NPM Downloads NPM License

API Introduction...

======================================

1. Install

npm install os-sdk

2. Import package

const {sys,mouse} = require('os-sdk');

3. API:sys

// 用于执行系统命令的核心 API
sys.exec(command[, options], callback);
//command:要执行的系统命令(字符串)
// options(可选):配置项,常用的有:
    // cwd:指定命令执行的工作目录(默认当前目录)。
    // encoding:输出编码(默认 utf8)。
    // timeout:命令超时时间(毫秒,默认 0 无超时)。
// callback:回调函数,接收三个参数:
    // error:命令执行失败(如退出码非 0)时的错误对象。
    // stdout:命令的标准输出(字符串 / Buffer)。
    // stderr:命令的错误输出(字符串 / Buffer)。	
// 关机
sys.shutdown((err)=>{
	console.log(err);
})
// 重启
sys.reboot((err)=>{
	console.log(err);
})
// 休眠
sys.sleep((err)=>{
	console.log(err);
})
// 锁屏
sys.lockScreen((err)=>{
	console.log(err);
})

3. API:mouse

// 模拟鼠标操作事件
mouse.get();                //光标位置
mouse.move(200,300);        //光标移动;
mouse.scroll(0, 100);       //鼠标滚轮
mouse.click(2);             // 0=左键 1=右键 2中间键
mouse.start((xy)=>{
	// 开始监听鼠标移动
	console.log(xy); //{ x: 200, y: 300 }
})
mouse.stop() // 结束监听鼠标移动