Skip to content

jwilm/pygments-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Node service using Koa for Pygments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published