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

web2ios

v0.1.9

Published

web2iOS — scan a Web/H5 project and render a 0-to-1 H5→iOS migration workflow

Readme

web2iOS

独立安装的 CLI:扫描 Web/H5,检测或创建 iOS 工程,写出项目卡,再渲染 从 0 把 H5 迁到 iOS 的工作流文档。

新建的 iOS 工程是 UIKit + SwiftAppDelegate / SceneDelegate / 代码布局),不用 SwiftUI,不用 Storyboard

npm 包名必须小写,故发布名为 web2ios,命令也是 web2ios。产品名写作 web2iOS。

安装

npm i -g web2ios
npx web2ios onboard --root /path/to/your-h5

开发中改源码后:

cd web2ios && npm pack && npm i -g ./web2ios-0.1.9.tgz

0 → 1 怎么用

web2ios onboard --root /path/to/your-h5 --name Litemall --prefix Lm

onboard / sync 必须已安装完整 Xcode(仅 Command Line Tools 不够)。未安装会提示并停止,不写入 iOS 工程。

  • 已有 .xcworkspace / .xcodeproj:直接使用,不必填 --name / --prefix
  • 没有:必须提供 --name(工程 / Target / Scheme 名)和 --prefix(类与文件夹前缀,如 CxLm)。终端里可以直接询问;脚本/管道环境请把参数写在命令上。不默认 App / Cx
  • 重建:web2ios onboard --reset-ios --name Litemall --prefix Lm

不要对尚未迁完的项目执行 onboard --phase operate

一条切片完成 = 总控已派 H5 专家 / iOS 专家 / code review,且取证落盘 + 对齐 H5 + 不丢逻辑 + 图标和背景图来自 H5 + 跨端差异已告知 + review 通过 + 真机跑通。总控勾 inventory.md不必等用户口头确认。全部勾完后再:

硬约束(禁止发挥):

  • 图标必须用 H5 资源,禁止 SF Symbol / 自绘顶替
  • 背景图必须把 H5 的图迁过来,禁止用纯色代替
  • H5 机制在 iOS 上必然不同时继续做,但回复里必须单独写「跨端差异」给用户看

已 onboard 过的仓库升级 CLI 后执行 web2ios render(或 sync)以刷新文档,不会清掉 inventory 的 [x]

web2ios set-phase operate

扫描支持 UniApppages.json)和 Vue SPAvue + Vite / src/router / src/App.vue)。

其它命令:scan(只改项目卡)、rendersyncstatus

已经迁完的产品(operate)

仅当 iOS 已是主产品、H5 只作增量参考时:

web2ios onboard --root /path/to/workspace \
  --phase operate \
  --h5 your-h5 \
  --workspace your.xcworkspace \
  --scheme YourScheme