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

gckit

v0.1.0

Published

iOS文件生成工具

Readme

Gckit-CLI

Gckit-CLI代码生成的命令行工具,主要针对iOS(当然也支持自定义,比如DartJava)开发过程中Swift或者Objective-C语法的文件生成,可以通过一个简单的JSON文件即可生成对应的ViewControllerModelCell等文件,生成的文件类型、文件路径都可以自定义。一键生成最大的提高了开发效率,再也不用复制粘贴操作了,开发者只需关注业务代码的开发和 UI 界面的绘制。

安装

Node.js 环境

$ brew install node

更多安装方式可以参考Node.js 官方息息

安装完成后,可以使用以下命令检测是否安装成功:

$ node -v
v10.7.0
$ npm -v
6.4.1

安装 Gckit CLI 工具

$ npm install gckit -g

然后执行命令检测是否安装成功

$ gckit --help

使用

查看命令参数

$ gckit --help
Usage: gckit [options] [command] <command>

Options:
  -h, --help            output usage information

Commands:
  generate|g [options]  生成对应语言的文件
  config|c [options]    基本参数配置

  运行 gckit <command> --help 查看详细帮助信息.

简单尝试

执行 Shell 命令

$ gckit g product vc

然后会在当前目录下生成对应文件:

001

执行命令会相对于当前目录,根据默认配置生成Swift语言ViewController类型的文件

  • vc:指定生成的文件类型为ViewController
  • product:为输入的参数name
  • ggenerate的缩写,代表生成文件

体验一键生成

001

首先保证在tempJson文件夹下存在name"product"JSON文件

然后执行 Shell 命令:

$ gckit g product

默认提供的Swift模板,需要依赖三个开源库才可以编译通过:

 s.dependency 'UtilCore', '~> 0.1.0'
 s.dependency 'NetWorkCore', '~> 0.1.0'
 s.dependency 'EmptyDataView', '~> 0.1.0'