npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

esf-puml

v0.6.4

Published

Renders puml-files from nested directories, a string or a single *.puml file

Downloads

43

Readme

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

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

Requirements

esf-puml-1

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

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