Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 16, 2024 via pnpm

gh-pages 6.0.0

Publish to a gh-pages branch on GitHub (or any other branch on any other remote)
Package summary
Share
0
issues
2
licenses
33
MIT
9
ISC
Package created
18 Mar 2014
Version published
11 Aug 2023
Maintainers
2
Total deps
42
Direct deps
7
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
33 Packages, Including:
array-union@1.0.2
array-uniq@1.0.3
async@3.2.5
balanced-match@1.0.2
brace-expansion@1.1.11
commander@11.1.0
commondir@1.0.1
concat-map@0.0.1
email-addresses@5.0.0
escape-string-regexp@1.0.5
filename-reserved-regex@2.0.0
filenamify@4.3.0
find-cache-dir@3.3.2
find-up@4.1.0
fs-extra@11.2.0
gh-pages@6.0.0
globby@6.1.0
jsonfile@6.1.0
locate-path@5.0.0
make-dir@3.1.0
object-assign@4.1.1
p-limit@2.3.0
p-locate@4.1.0
p-try@2.2.0
path-exists@4.0.0
path-is-absolute@1.0.1
pify@2.3.0
pinkie-promise@2.0.1
pinkie@2.0.4
pkg-dir@4.2.0
strip-outer@1.0.1
trim-repeated@1.0.0
universalify@2.0.1

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
9 Packages, Including:
fs.realpath@1.0.0
glob@7.2.3
graceful-fs@4.2.11
inflight@1.0.6
inherits@2.0.4
minimatch@3.1.2
once@1.4.0
semver@6.3.1
wrappy@1.0.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

7
All Dependencies CSV
β“˜ This is a list of gh-pages 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
async3.2.5146.47 kBMIT
prod
commander11.1.044.69 kBMIT
prod
email-addresses5.0.023.69 kBMIT
prod
filenamify4.3.02.98 kBMIT
prod
find-cache-dir3.3.23.06 kBMIT
prod
fs-extra11.2.014.91 kBMIT
prod
globby6.1.03.02 kBMIT
prod

Visualizations

Frequently Asked Questions

What does gh-pages do?

The gh-pages npm package enables you to publish files to a gh-pages branch on GitHub, though it can also be employed for any other branch on any other remote. This is especially useful for front-end developers as it simplifies the process of updating the demo site for a project.

The gh-pages package is easy to use. You start by installing it as a development dependency using the command npm install gh-pages --save-dev. Once installed, import it in your script file using var ghpages = require('gh-pages'). To publish files, call the publish method and provide the directory that contains the files you want to publish. Here is an example:

var ghpages = require('gh-pages');
ghpages.publish('dist', function(err) {});

In this example, 'dist' is the folder that contains the files you want to publish on the gh-pages branch. The function ghpages.publish takes two arguments - the path to the directory and a callback function that will be executed once publishing is done.

The gh-pages package provides a number of configuration options via an options object in the publish method. You can customize the branch name, commit message, repository URL, add dotfiles, and more.

The entire documentation and more code usage examples for gh-pages can be found in the README file on its GitHub repository here.

How do you use gh-pages?

The gh-pages package can also be used from the command-line. Install the package globally by using the command npm install -g gh-pages. After installation, you can use the gh-pages command directly in your command line. Here is an example of how to do so:

"scripts": {
  "deploy": "gh-pages -d dist"
}

To publish everything from your dist folder to your gh-pages branch, run npm run deploy.

Where are the gh-pages docs?

The above commands will allow you to efficiently boost your JS project's visibility by harnessing GitHub's built-in gh-pages hosting.