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

@oipage/cli

v0.1.0

Published

开发快速助手,一个包含常用功能的命令行工具,旨在提升开发效率

Downloads

318

Readme

@oipage/cli

开发快速助手,一个包含常用功能的命令行工具,旨在提升开发效率

如何使用?

作为一个命令行,你可以全局安装:

npm install -g @oipage/cli

也可以作为项目开发中的一个功能加强,在 package.json 中配置命令使用,那么就在项目中执行安装命令:

npm install @oipage/cli --save

安装后,就可以使用了,先打印帮助信息查看一下:

oipage-cli

比如会出现类似下列内容:

@oipage/[email protected]

可以使用的命令如下:

【1】oipage-cli serve 开发服务器
    --port|-p 端口号
    --baseUrl 服务器根目录
......

根据提示我们知道,比如第一个命令,其提供了一个快速访问本地资源服务器的功能,执行:

oipage-cli serve -p 8080

启动成功后,直接访问: http://localhost:8080/ 即可。

oipage.config.js

通过配置文件 oipage.config.js 可以对服务器进行更精细化的配置:

oipage-cli serve --config ./oipage.config.js

其中 oipage.config.js 格式如下:

module.exports = {
    devServer: {
        port: 20000,
        baseUrl: "./"
    },
    module: {
        rules: [{ // 配置对文件的自定义处理
            test: /\.html$/, // 匹配文件,如果多个匹配到,只会选用第一个
            use(source) { return source }
        }]
    }
}

上述一级配置项(devServer、module等)皆可选,按需配置即可,具体可以查看 可配置项 查看详情。

作为API使用

当然,也可以使用API的方式,比如:

const { serve } = require("@oipage/cli");

serve({
    devServer: {
        port: 20000,
        baseUrl: "./"
    }
});

已有功能或更多功能我们将根据实际情况逐步完善和维护,当然,你可以通过 issue 给我们留言,告诉我们你的改进意见。

版权

MIT License

Copyright (c) zxl20070701 走一步,再走一步