Skip to content

💫 Convert Github Repo URL to Github Pages

License

Notifications You must be signed in to change notification settings

rohmanhm/gh-to-pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💫 GH-TO-PAGES

Greenkeeper badge

Build Status

Convert Github Repo URL to Github Pages

Example

Convert from

'https://github.com/rohmanhm/gh-to-pages' // support with https protocol
'http://github.com/rohmanhm/gh-to-pages' // support with http protocol
'github.com/rohmanhm/gh-to-pages' // support without protocol
'git@github.com:rohmanhm/gh-to-pages.git' // support ssh url

to

'https://rohmanhm.github.io/gh-to-pages'

Install

  • NPM
    npm install gh-to-pages --save
  • Yarn
    yarn add gh-to-pages

How to use

// es6
import ghToPages from 'gh-to-pages'
// commonjs
const ghToPages = require('gh-to-pages')

ghToPages('https://github.com/rohmanhm/gh-to-pages') // result https://rohmanhm.github.io/gh-to-pages

LICENSE

MIT @rohmanhm