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 🙏

© 2024 – Pkg Stats / Ryan Hefner

gbook-cli

v1.0.1

Published

CLI to generate books and documentation using gbook

Downloads

2

Readme

gbook-cli

NPM version Linux Build Status Windows Build status

GBook命令行界面。

全局安装此程序,您将可以在系统上的任何位置访问gbook命令。

$ npm install -g gbook-cli

注意: gbook命令的目的是加载并运行您在书中指定的gbook版本(或最新版本),而不管其版本如何。GBook CLI仅支持 >=2.0.0 GitBook 版本。

gbook-cli 将GBook的版本存储到 ~/.gbook 中,您可以将GBOOK_DIR环境变量设置为使用另一个目录。

如何安装?

$ npm install -g gbook-cli

如何使用它?

运行 GBook

运行命令 gbook build, gbook serve (有关详细信息,请阅读 GBook 文档)。

使用以下命令列出所有可用命令:

$ gbook help

指定特定版本

默认情况下,GBook CLI将从书籍配置(book.json)中读取要使用的gbook版本,但是您可以使用以下 --gbook 选项强制使用特定版本:

$ gbook build ./mybook --gbook=2.0.1

并使用以下命令列出此版本中的可用命令:

$ gbook help --gbook=2.0.1

管理版本

列出已安装的版本:

$ gbook ls

列出NPM上的可用版本:

$ gbook ls-remote

安装特定版本:

$ gbook fetch 2.1.0

# 或者一个预发行(pre-release)

$ gitbook fetch beta

更新到最新版本

$ gbook update

卸载特定版本

$ gbook uninstall 2.0.1

使用本地文件夹作为GBook版本(用于开发)

$ gbook alias ./mygbook latest