New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

sequencediagrams

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequencediagrams

A simple command line tool to create diagrams

latest
Source
npmnpm
Version
0.0.8
Version published
Maintainers
1
Created
Source

#Warning

This package uses ES6 generators, so make sure to either use io.js or nodes harmony flags!

About

This is a command line tool which uses the API of websequencediagrams in order to create sequence diagrams out of .wsd files.

Syntax details can be found at https://www.websequencediagrams.com/examples.html Example content of a .wsd file

title create user

App -> Api: POST /user with email, fpw,
Api -> Router: route POST /user
Router -> UserController: create user
UserController -> UserController: validate request

alt isValid
    UserController -> UserController: new User
    UserController -> Router: next
else isInvalid
    UserController -> Api: respond with 400 invalid request
    Api -> App: 400 invalid request

Results in

Run

Usage: sequencediagrams [options] <file or folder>
    
    Options:

    -h, --help          output usage information
    -V, --version       output the version number
    -t, --theme <name>  Choose theme out of 'napkin', 'earth' (Defaults to napkin)

Credits

Thanks to hildjj's https://github.com/hildjj/node-websequencediagrams project, which already provides an abstraction around the websequencediagram API

Keywords

websequencediagrams

FAQs

Package last updated on 30 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts