0.6.4 • Published 8 years ago

esf-puml v0.6.4

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

PlantUML Renderer

Code Climate

A Node.Js module for converting PlantUML files to graphics formats: SVG, PNG, EPS.

System Requirements

  1. Graphviz installed.
  2. Path to Grapviz Dot executable directory registered in system PATH.

Installation

npm i esf-puml

Running unit tests locally

Ensure tst/d/out is writable, or redefine it in tst/index.js.` Then run:

esf-puml> npm i -D
esf-puml> gulp test

PlantUML Credits

The module includes the MIT licensed version, available from MIT licensed PlantUML download.

Road map

VersionFunctionalityStatus
0.1.0Recursive directory rendering (req. esf-puml-2)released
0.2.0Single file rendering (req. esf-puml-4)released
0.3.0String input rendering (req. esf-puml-2)released
0.4.0Stream rendering to svg (partial req. esf-puml-5)released
0.5.0String to string (req. esf-puml-7)released
1.0.0API v.1.0 implementation (req. esf-puml-6)
1.1.0API v.1.1 implementation (req. esf-puml-8)-

Requirements

esf-puml-1

ReqIdRequirementImplementation Methods
esf-puml-1There should be an option to chose a result format: pngsvgeps
esf-puml-2Rendering PUML-files from a directory recursivelyrenderDir
esf-puml-2.1It should gather puml-files from nested directories recursively and create the same temporary structure
esf-puml-2.2It should render all the files
esf-puml-2.3It should delete puml-sources
esf-puml-2.4It should move the result to the out directory
esf-puml-3Rendering a string inputrenderString
esf-puml-3.1It should accept puml-string as input
esf-puml-3.2It should save an output file at a specified path
esf-puml-4Rendering a single filerenderFile
esf-puml-4.1It should gather puml-files from nested directories recursively at inp as a root
esf-puml-4.2It should write the result in chosen format to Writable stream
esf-puml-5Process a streamstream
esf-puml-5.1It should read a stream
esf-puml-5.2It should return a Readable stream
esf-puml-6It should implement API v.1.0
esf-puml-7Rendering a string input to string outputrenderStringToString
esf-puml-7.1It should accept puml-string as input
esf-puml-7.2It should return an svg image
esf-puml-8It should automatically detect source and provide an according method, API 1.1 imlementationrender

API

v.1.1

Promise         render                ([string inpDir|inpFile], string outDir=null  [,format='svg'])  //
Promise         renderDir             (string inpDir,           string outDir,      [,format='svg'])  //
Promise         renderFile            (string inpFilePath,      string outDir       [,format='svg'])  //
Promise         renderString          (string pumlString,       string outFilePath  [,format='svg'])  //
Promise         renderStringToString  (string pumlString,       [,string format='svg'])               //
stream.Duplex   stream                ([format='svg']           [,string cwd=null])                   // custom Cwd

v.1.0

Promise         renderDir             (string inpDir,       string outDir,      [,format='svg'])  //
Promise         renderFile            (string inpFilePath,  string outDir       [,format='svg'])  //
Promise         renderString          (string pumlString,   string outFilePath  [,format='svg'])  //
Promise         renderStringToString  (string pumlString,   [,format='svg'])                      //
stream.Duplex   stream                ([,format='svg']      [,cwd=null])                          // custom Cwd

MIT © bondden 2015

0.6.4

8 years ago

0.6.3

8 years ago

0.6.2

8 years ago

0.6.1

8 years ago

0.6.0

8 years ago

0.5.0

8 years ago

0.4.8

8 years ago

0.4.7

8 years ago

0.4.6

8 years ago

0.4.4

9 years ago

0.4.3

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago