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

@codepan/kiwi-gitbook-cli

v0.1.1

Published

一个使用gitbook来构建静态电子书,集成gulp对静态资源进行压缩混淆,并集成了ftp和scp两种方式自动化部署到服务器上的一个脚手架工具

Readme

介绍

该脚手架默会为您创建一个集成gitbook来构建静态电子书,集成gulp对静态资源进行压缩混淆,并集成了ftp和scp两种方式自动化部署到服务器上的一个脚手架工具

非常适合喜欢使用markdown语法来写技术文章、笔记总结等人群。

安装

yarn global add @codepan/kiwi-gitbook-cli

OR

npm i -g @codepan/kiwi-gitbook-cli

配置文件

使用脚手架初始化的项目,项目根路径下会有两个配置文件,文件必须存在,且文件位置和名字不能改动:

  • gitbook.config.js 项目配置文件,这个文件需要你使用commonjs规范导出一个对象进行配置
  • gulpfile.js gulp配置文件,一般情况下无需做变动

gitbook.config.js文件配置项

mode

类型:string

释义:部署到服务器上的模式,默认为scp,也可以不传

取值:ftpscp

entry

类型:string

释义:项目打包的入口,默认为./src

output

类型:string

释义:产出目录,默认为./dist

deploy

类型:object

释义:配置部署相关的参数

取值:

{
  projectName,
  rootPath,
  connectOptions
}

deploy.projectName

类型:string

释义:项目名称,即项目将来部署到服务器上的文件夹名字

deploy.rootPath

类型:string

释义:指定项目要部署到服务器上根路径

deploy.connectOptions

类型:object

释义:配置连接ftp服务器,或ssh连接服务器时所需的配置参数

取值:

{
  host,
  user,
  password
}

deploy.connectOptions.host

类型:string

释义:主机,填写IP地址

deploy.connectOptions.user

类型:string

释义:用户名

deploy.connectOptions.password

类型:string

释义:密码

deploy.devServer

类型:object

释义:配置开发服务器

取值:

{
  port,
  open,
  watch
}

deploy.devServer.port

类型:number

释义:端口号,默认为4000

deploy.devServer.open

类型:boolean

释义:是否自动打开浏览器,默认false

deploy.devServer.watch

类型:boolean

释义:是否开启监测模式,默认true

命令

查看版本

kiwi-gitbook -V|--version

使用帮助

kiwi-gitbook -h|--help

查看所有预设模板

kiwi-gitbook list

创建项目

kiwi-gitbook create <project>

启动web服务器,进行本地开发预览

kiwi-gitbook dev

构建项目

kiwi-gitbook build

部署项目

kiwi-gitbook deploy