Created
December 10, 2012 18:32
-
-
Save fxg42/4252342 to your computer and use it in GitHub Desktop.
build urls for websequencediagrams.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qs = require 'querystring' | |
diagram = """ | |
title Foo bar baz | |
a -> b: do b.m() | |
b -> c: do c.m() | |
""" | |
baseUrl = "http://www.websequencediagrams.com/cgi-bin/cdraw" | |
opts = | |
lz: (new Buffer diagram.replace /\n/g, '\n\n').toString 'base64' | |
s: "rose" | |
console.log "#{baseUrl}?#{qs.stringify opts}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No longer works; have you maybe updated your script?