Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jwilm/pygments-service
Node service using Koa for Pygments
https://github.com/jwilm/pygments-service
Last synced: 7 days ago
JSON representation
Node service using Koa for Pygments
- Host: GitHub
- URL: https://github.com/jwilm/pygments-service
- Owner: jwilm
- License: mit
- Created: 2014-01-01T00:12:31.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-02T19:07:01.000Z (almost 11 years ago)
- Last Synced: 2024-10-17T10:06:54.152Z (21 days ago)
- Size: 109 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pygments-service
================Node service using Koa for Pygments
## Usage
The app can be run standalone or mounted into a larger koa app. To run the
service by itself, `npm start` will get you going. To mount into your own app,
require this package and pass `app.callback()` into your `http.createServer`
call.### Routes
The only route supported by this service is `POST` on `/pygmentize`. The only
required parameter is `code` which is passed along to the pygmentize exe.
Supplying a `lexer` may yield better results.## License
MIT