1.1.2 • Published 2 years ago

nutuml v1.1.2

Weekly downloads
7
License
MIT
Repository
github
Last release
2 years ago

NutUml

NutUml is A tool to generate UML diagram via text. For online preview you can visit https://www.nutuml.com/

Get Start

We describe a sequence sample by:

Client -> Server : Request
Server -> Client : Response

You can use the follow Code to try. Remember download nutuml.js to your local.

<script src="nutuml.js"></script>
<div id="test"></div>
<script>
    var text = 'Client -> Server : Request\nServer -> Client : Response';
    document.getElementById("test").innerHTML = nutuml.render(text);
</script>

React demo

npm i nutuml

React code

import nutuml from 'nutuml';

function App() {
  let img = nutuml.render('Client -> Server : Request\nServer -> Client : Response');
  return (
    <div dangerouslySetInnerHTML = {{ __html: img }}>
    </div>
  );
}
export default App;

for the code above, it will generate a picture as follow:

img

Star is welcome

If this project make sense to you, please give me a star.

Thank you!

1.1.1

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.0.0

3 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago