Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gh-pages-bootstrap

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gh-pages-bootstrap

Locally recreate the URL scheme you'd get on GitHub Pages

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

gh-pages-bootstrap

NPM

About

The problem

Your website is currently hosted on GitHub Pages, but you're moving away. Maybe you want to deploy TLS (good on you!), or maybe GitHub's URL construction is too inflexible for you.

However, when you move your site to a different server, suddenly all your links break. You find yourself manually git cloneing all of your repositories just to get a usable website!

The solution

gh-pages-bootstrap is a small utility to automate this for you. It queries the GitHub API and then reconstructs exactly what you'd see on GitHub Pages on your local disk. Presto!

Installation

npm install gh-pages-bootstrap

Or as a CLI tool:

npm install -g gh-pages-bootstrap

Usage

As a module:

```js
var bootstrap = require('gh-pages-bootstrap');

var user = 'someone'; // GitHub user
var token = 'a1b2c3d4e5f6g7h8i9j0'; // GitHub OAuth2 token

ghpages(user, token, function(err) {
	throw err;
});
```

On the commandline:

$ gh-pages-bootstrap

This will prompt you for your GitHub username and password. If you run it a second time, it will use the cached OAuth2 token.

Author

Alex Jordan (@strugee on GitHub)

License

LGPL3+

Keywords

FAQs

Package last updated on 11 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc