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

@gitbook-ng/gitbook

v3.3.6

Published

Library and cmd utility to generate GitBooks

Downloads

84

Readme

@gitbook-ng/gitbook

@gitbook-ng/gitbook npm badge Build Status codecov PR Welcome

GitBook is a command line tool (and Node.js library) for building beautiful books using GitHub/Git and Markdown (or AsciiDoc).

Why Choose @gitbook-ng/gitbook instead of legacy gitbook

@gitbook-ng/gitbook fork from legacy gitbook but providing vulnerabilities fixes and will continue to maintained to provide bugs/ vulnerabilities fixes.

@gitbook-ng/gitbook Have no known vulnerabilities.

$ npm install @gitbook-ng/gitbook
...
...
found 0 vulnerabilities

Legacy gitbook have hundreds of vulnerabilities:

$ npm install gitbook
...
...
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: potential XSS vulnerability in autoescape mode, and with escape filter was fixed in v2.4.3
npm WARN deprecated [email protected]: Way too old
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: This module relies on Node.js's internals and will break at some point. Do not use it, and update to [email protected].
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: The sprintf package is deprecated in favor of sprintf-js.
npm WARN deprecated [email protected]: Potential REDOS vulnerability removed in v1.1.0
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
...
...

found 224 vulnerabilities (30 low, 114 moderate, 76 high, 4 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

Getting started

No more separated gitbook-cli is required and no more global installation.

TODO.

Quick start:

npm install @gitbook-ng/gitbook

Add build and serve command to package.json:

"scripts": {
  "serve": "gitbook serve",
  "build": "gitbook build",
}

Then you can run:

npx gitbook init

npm run build
npm run serve

Migrate from legacy gitbook-cli

First you need uninstall gitbook-cli (optionally, recommend to save your disk space):

npm uninstall gitbook-cli -g
rm -fr ~/.gitbook   # Remove legacy gitbook global installation

Then follow Get Started.

Notice

This is a fork of GitBookIO/GitBook CLI due to GitbookIO deprecated GitBook CLI project.

There are hundreds of vulnerabilities on GitBookIO/GitBook.

This fork try to fix all the known vulnerabilities and PR is welcome for bug fixes, enhancement etc.

Like keep GitBook CLI continue to live, +1 star please.

Changes to original gitbook

There are in-compatible changes to original gitbook:

  • NPM package name changed to @gitbook-ng/gitbook.
  • There is no more gitbook-cli required, just install @gitbook-ng/gitbook you will be all set.
  • No more global installation of gitbook.

Licensing

GitBook is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.