Render Markdown in the Terminal
Preview and render markdown files in the terminal with color syntax highlighting. Also render markdown from a given url
or from a GitHub repository and an npm package.
npm install -g termd
# Using `npx`
npx termd [options]
To render a markdown file in the terminal, use the termd
command with the file name or relative path to the markdown file.
termd <filename>
# Example
termd readme.md
....
--string, -s Use a string with markdown syntax
--url, -u Render markdown from url in the terminal
--npm, -n Render npm package readme in the terminal
--github, -g Render github repository readme in the terminal
termd --string="## Heading 2"
termd -s ## Heading 2
Heading 2
termd --url="https://some.url/with/markdown/file"
termd -u https://some.url/with/markdown/file
...
termd --npm="termd" # Package name
termd -n termd
...
termd --github="dephraiim/termd" # Repo Owner / Repo Name
termd -g dephraiim/termd
...
To begin developing, do this.
git clone https://github.com/dephraiim/termd.git
cd termd
npm install
- Fork it
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
MIT © Ephraim Atta-Duncan