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 🙏

© 2025 – Pkg Stats / Ryan Hefner

gitbook-nodejs-cli

v1.1.4

Published

基于nodejs的gitbook文档发布插件

Downloads

32

Readme

gitbook-nodejs-cli

================================

基于nodejs的内部gitbook文档发布插件.

安装

$ npm install gitbook-nodejs-cli -g

因为安装后是命令行命令,所以在安装时候需要管理员权限,windows请管理员运行,linux可以使用sudo

$ sudo npm install gitbook-nodejs-cli -g

使用

$ gitbook_publish <path>
  • 发布的文档需要包含package.json文件,作为发布参数配置。此文件需要包含以下几个节点(对于nodejs项目基本都已经拥有部分节点):

    { "name": "ulynlist", "version": "5.0.5", "gitbookserver": "http://192.168.0.62:7878/gitbook", "cnName": "列表组件", "description": "ulynlist是一款适合快速开发的列表展示组件,其核心设计目标是开发迅速、代码量少、学习简单,使用方便、可分离、易扩展。", "doc":"./doc" }

  • path为项目路径,也就是package.json文件的目录

  • 默认情况下使用path下的doc作为文档目录,如果目录有变动,可以在package.json的doc节点进行配置。支持相对路径写法。

示例

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\ulyn>gitbook_publish F:\workplace\sunsharing\component\ulynlist\ulynlis

文档文件夹的路径不存在[ F:\workplace\sunsharing\component\ulynlist\ulynlis ]

C:\Users\ulyn>gitbook_publish F:\workplace\sunsharing\component\ulynlist\ulynlis
t4j
准备发布文档的项目文件夹:F:\workplace\sunsharing\component\ulynlist\ulynlist4j
读取组件配置文件路径 F:\workplace\sunsharing\component\ulynlist\ulynlist4j\packa
ge.json
组件名:ulynlist
中文名:列表组件
版本号:5.0.5
服务器:http://192.168.0.62:7878/gitbook
描述:ulynlist是一款适合快速开发的列表展示组件,其核心设计目标是开发迅速、代码量
少、学习简单,使用方便、可分离、易扩展。
doc路径:F:\workplace\sunsharing\component\ulynlist\ulynlist4j\doc
读取组件文档文件路径 F:\workplace\sunsharing\component\ulynlist\ulynlist4j\doc
待上传文件个数:12
准备上传文件:F:/workplace/sunsharing/component/ulynlist/ulynlist4j/doc/image/3.p
ng
准备上传文件:F:/workplace/sunsharing/component/ulynlist/ulynlist4j/doc/image/1.p
ng
准备上传文件:F:/workplace/sunsharing/component/ulynlist/ulynlist4j/doc/image/2.j
pg
准备上传文件:F:/workplace/sunsharing/component/ulynlist/ulynlist4j/doc/advanced.
md
准备上传文件:F:/workplace/sunsharing/component/ulynlist/ulynlist4j/doc/SUMMARY.m
d
准备上传文件:F:/workplace/sunsharing/component/ulynlist/ulynlist4j/doc/update-lo
g.md
准备上传文件:F:/workplace/sunsharing/component/ulynlist/ulynlist4j/doc/README.md

准备上传文件:F:/workplace/sunsharing/component/ulynlist/ulynlist4j/doc/how-to-us
e.md
准备上传文件:F:/workplace/sunsharing/component/ulynlist/ulynlist4j/doc/how-to-us
e-java.md
准备上传文件:F:/workplace/sunsharing/component/ulynlist/ulynlist4j/doc/how-to-us
e-html.md
准备上传文件:F:/workplace/sunsharing/component/ulynlist/ulynlist4j/doc/getting-s
tart.md
准备上传文件:F:/workplace/sunsharing/component/ulynlist/ulynlist4j/doc/download.
md
成功上传文件个数:12 耗时:269毫秒

开始生成gitbook...

[0;36minfo: loading book configuration....OK
info: load plugin gitbook-plugin-prism ....OK
info: >> 1 plugins loaded
info: start generation with website generator
info: clean website generator
info: OK
info: generation is finished

Done, without error

恭喜,生成gitbook成功!(*^__^*)
项目文档URL:http://192.168.0.62:7878/gitbook/document/ulynlist/5.0.5/_book/index
.html

C:\Users\ulyn>