Skip to content
/ gogrip Public

An easy way to preview rendered markdown files locally

Notifications You must be signed in to change notification settings

sixlive/gogrip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoGrip - GitHub Readme Preview

A minimal command-line tool that renders local markdown files using GitHub's API.

Installation

You can install via go using the following command:

go install github.com/sixlive/gogrip@latest

You can also install by snagging a pre-built binary from the releases page.

Usage

Basic usage with default README.md:

gogrip

Specify a different file:

gogrip -f CONTRIBUTING.md

Open in browser automatically:

gogrip -b

Custom host and port:

gogrip -host 0.0.0.0 -port 8080
With GitHub authentication (for higher rate limits):
gogrip -token YOUR_GITHUB_TOKEN

Options

Usage of gogrip:
  -host string
        Host to listen on (default "localhost")
  -port int
        Port to listen on (default 6419)
  -f string
        File to render (default "README.md")
  -token string
        GitHub personal access token
  -b    
        Open browser automatically

Acknowledgments

This project is inspired by Grip, the Python-based GitHub Readme Instant Preview tool.

License

MIT

About

An easy way to preview rendered markdown files locally

Resources

Stars

Watchers

Forks

Languages