Commit Graph

13 Commits

Author SHA1 Message Date
Paul Melnikow
8b77d16a72 Always call the callback + reliable erroring
Fixes #914
2017-04-12 23:13:16 +02:00
Paul Melnikow
0760d17d82 Return data from svg2img via callback
Given the chunks coming from imagemagick are getting stored memory and
then tucked into a cache, this function could as easily return a buffer
via callback. Streaming is just making it more complex. (And trickier to
test!)
2017-04-12 23:13:16 +02:00
Thaddee Tyl
11b6e06f2f Organize local modules in lib 2017-03-26 22:57:55 +02:00
Thaddee Tyl
dab8bc9832 bin: support json format 2014-10-25 19:16:35 +02:00
Thaddee Tyl
d578b65513 new flat style: cleanup.
- The information stored in `makeImage`'s `options` parameter is better served
  in its `data` parameter,
- Remove the (no longer used) `colorscheme` parameter to `makeTemplate`,
- We can already get to the contents of the URL query parameter `style` through
  that `data` parameter in `getRequest`,
- Relocation of the code to set badge data related to the flat style into
  `getBadgeData`,
- Code style (adding semicolons).

Related to issue #159.
2014-04-19 22:25:35 +00:00
Max Ogden
c6163c9a4f move colorscheme back to original location, add @ syntax to cli for specifying style, cache templates on server start 2014-04-19 10:27:20 -07:00
Max Ogden
252de55aa4 fix colorsche.ejson path in tests 2014-04-19 10:06:39 -07:00
Thaddee Tyl
866dc8a081 cli: shebang. 2014-01-19 12:45:17 +01:00
Thaddee Tyl
24f1bd6f0f Using __dirname 2014-01-18 18:57:03 +01:00
Thaddee Tyl
ece0393852 cli: document the possibility of having several outputs. 2014-01-17 15:27:29 +01:00
Thaddee Tyl
a9d7579eb7 Allow bitmap image output. 2014-01-17 15:25:24 +01:00
Thaddee Tyl
dc1ceaa2ef cli: Omit needless function. 2014-01-07 21:44:41 +01:00
Thaddee Tyl
5e2a7d478e Executable program.
Generates SVG badges.
2014-01-07 15:52:59 +01:00