An updating markdown previewer in a browser
JavaScript
Switch branches/tags
Nothing to show
Latest commit c67633a May 9, 2013 @jdubie Fixed embarrassing ASCII art bug
Actually fixed it

wef
Permalink
Failed to load latest commit information.
bin Fixed embarrassing ASCII art bug May 9, 2013
public Decomposed `index.js` and added binary May 9, 2013
.gitignore First commit May 9, 2013
README.md Decomposed `index.js` and added binary May 9, 2013
helper.js Decomposed `index.js` and added binary May 9, 2013
index.js
package.json Fixed embarrassing ASCII art bug May 9, 2013
render.js Decomposed `index.js` and added binary May 9, 2013

README.md

downtown

An updating markdown previewer in a browser

         .        .            |       .        .        .
              *        .       |   .        .
        .                     /-\     .           .   .
 .               .    .      |"""|              :        .
         .                  /"""""\  .      *       |>.
                           | # # # |     .        /\|  ___
    __     ___   ___   .   |# # # #| ___      ___/<>\ |:::|
  / ""|  __|~~| |'''|      |# # # #||"""|  __|"""|^^| |:::|
 /""""| |::|''|~~~~||_____ |# # # #||"""|-|::|"""|''|_|   |
 |""""| |::|''|""""|:::::| |# # # #||"""|t|::|"""|''|"""""|
 |""""|_|  |''|""""|:::::| |# # # #||"""|||::|"""|''""""""|
 |""""|::::|''|""""|:::::| |# # # #||"""|||::|"""|''""""""|

credit: www.retrojunkie.com/asciiart/building/skylines.htm

getting started

install node package globally

$ npm install -g downtown 

cd into project root and start server

$ cd project
$ ls project
src/
README.md
$ downtown 

open browser to (http://localhost:6969/README.md)

$ echo "# Whoa it updates..." | cat - README.md > temp && mv temp README.md # updates

check back to browser and look for changes

requirements

  • browser must support HTML5 EventStream
  • OS must support npm package node-watch which depends on the unstable fs.watch