Super Basic PasteBin Clone built with Koa, MongoDB, Jade, Bootstrap 4 and Prism.js.
Try it out at paste-node.herokuapp.com
- Clean code thanks to ES7 async/await, Koa and Babel
- Full syntax highlighting via Prism.js
- Short URLs via shortid, e.g.
NyQO9puMe
- Full support for CLI requests with curl etc
- Textarea grows to fit content via autosize
- Automatic and configurable paste expiry
- Simple and responsive UI built with Bootstrap 4
# Simple paste
$ echo 'Hello World' | curl -F 'paste=<-' http://paste-node.herokuapp.com
http://paste-node.herokuapp.com/N15FNVqfg
# wget or any other tool is fine too:
$ wget --post-data 'paste=Hello from wget' -qO- http://paste-node.herokuapp.com
# Either form or multipart data is accepted:
$ curl -d 'paste=Sent as multipart' http://paste-node.herokuapp.com
# Specify the syntax to highlight:
$ git diff README.md | curl -F 'paste=<-' -F 'highlight=diff' http://paste-node.herokuapp.com