open-index/open-npm huggingface dataset:
npm package: @pintora/cli
Description: A node.js version of pintora
Author: hikerpig
Latest version: 0.8.1

# `@pintora/cli`


@pintora/cli is a simple multi-command command-line Node.js application that transform the pintora DSL into diagram images.

You can install it globally with:

```sh
npm i -g @pintora/cli
```

Get some help with `pintora --help`:

## Usage

Pelease refer to the online [documentation and demo](http://pintorajs.vercel.app/docs/intro/) for more details.

```sh
pintora [command]

Commands:
  pintora render  Render DSL to diagram image

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]
```

### pintora render

```sh
pintora render

Render DSL to diagram image

Options:
      --version           Show version number                          [boolean]
      --help              Show help                                    [boolean]
  -i, --input             Input file path                             [required]
  -o, --output            Output file path
  -p, --pixel-ratio       Pixel ratio                               [default: 2]
  -b, --background-color  Background color
  -t, --theme             Pintora theme                     [default: "default"]
  -w, --width             Canvas width
```

examples:

```sh
pintora render -i ../test-shared/example-files/sequence.pintora -o sequence.png

# Set image background color
pintora render -i ../test-shared/example-files/sequence-2.pintora -b "#FAFAFA" -o sequence-2.jpg

# Preview with theme 'dark'
pintora render -i ../test-shared/example-files/sequence-2.pintora --theme dark -o sequence-2.jpg

# Set canvas width to 1000, and set `core.useMaxWidth` to true by default
pintora render -i ../test-shared/example-files/sequence.pintora --width 1000 -o sequence-w-1000.jpg
```
npm package: @pintora/dagre
Description: Graph layout for JavaScript
Author: Hikerpig
Latest version: 0.10.10

# dagre-layout - Graph layout for JavaScript

[![Build Status](https://circleci.com/gh/hikerpig/dagre-layout.svg?style=shield)](https://circleci.com/gh/hikerpig/dagre-layout)
[![codecov](https://codecov.io/gh/hikerpig/dagre-layout/branch/master/graph/badge.svg?token=BA06M96QIR)](https://codecov.io/gh/hikerpig/dagre-layout)

This project is an out-of-box replacement for [dagre](https://github.com/dagrejs/dagre).

Based on the original [dagre](https://github.com/dagrejs/dagre) and Tyler's [dagre-layout](https://github.com/tylingsoft/dagre-layout).

Dagre is a JavaScript library that makes it easy to lay out directed graphs on the client-side.

For more details, including examples and configuration options, please see the [wiki](https://github.com/dagrejs/dagre/wiki).


## Changes compared to dagrejs/dagre

- Upgrade all the dependencies (loadash 3 => 4)
- PNPM instead of NPM
- Get rid of PhantomJS
- Written in Typescript
- Use rollup instead of browserify
- Use Jest for testing
- Add test coverage report
- Remove Bower support
- Use 0 instead of `Number.NEGATIVE_INFINITY`
- Git ignore auto-generated code
- Others mentioned in the CHANGELOG.md


## Setup

```
pnpm install
```


## Build

```
pnpm build
```


## Test

```
pnpm test
```


## License

dagre-layout is licensed under the terms of the MIT License. See the LICENSE file for details.
npm package: @pintora/graphlib
Description: A directed and undirected multi-graph library
Author: Tyler Long
Latest version: 2.2.2

# @pintora/graphlib

@pintora/graphlib is a JavaScript library that provides data structures for undirected and directed multi-graphs along with algorithms that can be used with them.

It's a fork of [graphlibrary](https://github.com/tylingsoft/graphlibrary), which is a fork of [dagrejs/graphlib](https://github.com/dagrejs/graphlib). And it is designed as an out-of-box replacement for dagrejs/graphlib.

To learn more [see our Wiki](https://github.com/dagrejs/graphlib/wiki).


# License

@pintora/graphlib is licensed under the terms of the MIT License. See the [LICENSE](LICENSE) file for details.
npm package: @pintora/standalone
Description: A standalone version of pintora that has all the default diagrams
Author: hikerpig
Latest version: 0.8.1

# @pintora/standalone

<p align='center'>
  <img width="140" src="https://raw.githubusercontent.com/hikerpig/pintora/master/demo/public/img/logo.svg" alt="pintora" />
</p>
<p align='center'>
  <a href="http://pintorajs.vercel.app/docs/intro/">Documentation</a>
  <span>|</span>
  <a href="http://pintorajs.vercel.app/demo/live-editor/">Live Editor</a>
</p>

<p align='center'>
  <a href='https://www.npmjs.com/package/@pintora/standalone'>
    <img src='https://img.shields.io/npm/v/@pintora/standalone?color=ff8150&label=@pintora/standalone' />
  </a>
  <a href="https://bundlephobia.com/package/@pintora/standalone">
    <img src="https://img.shields.io/bundlephobia/min/@pintora/standalone" />
  </a>
</a>
</p>

<br>

This is a standalone version of pintora that has all the diagrams pre-bundled.

Pintora is a javascript text-to-diagrams library that works in both browser and Node.js.

Expressing your thoughts in a diagram is better than a thousand words. With the help of pintora.js, you can create diagrams with intuitive text.

Heavily inspired by [Mermaid.js](https://mermaid-js.github.io/mermaid/#/) and [PlantUML](https://plantuml.com/).

## ✨ Features

- In browser side, output SVG or Canvas.
- In Node.js side, output PNG/JPG file.
- \[Planning\] Modular and composable, load specific diagram implementaions only when needed, keep the core code lightweight.
- \[Planning\] Highly extensible, provide a plugin system for diagram developer to write and distribute their own diagrams.

### Diagram types

- Sequence Diagram
- Entity Relationship Diagram
- Component Diagram
- Activity Diagram
- Mind Map
- Gantt Diagram

<table>
  <thead>
    <tr>
      <th>name</th>
      <th>preview</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Sequence Diagram</td>
      <td>
        <img src="https://i.imgur.com/6CMLz7C.jpg" title="Sequence Diagram" width="300" />
      </td>
    </tr>
    <tr>
      <td>Entity Relationship Diagram</td>
      <td>
        <img src="https://i.imgur.com/o31ydlQ.jpg" title="Entity Relationship Diagram" width="300" />
      </td>
    </tr>
    <tr>
      <td>Component Diagram</td>
      <td>
        <img src="https://i.imgur.com/yk68Ot5.jpg" title="Component Diagram" width="300" />
      </td>
    </tr>
    <tr>
      <td>Activity Diagram</td>
      <td>
        <img src="https://i.imgur.com/HoMe3Gp.jpg" title="Activity Diagram" width="300" />
      </td>
    </tr>
    <tr>
      <td>Mind Map</td>
      <td>
        <img src="https://i.imgur.com/jT6HQg6.jpg" title="Mind Map" width="300" />
      </td>
    </tr>
    <tr>
      <td>Gantt Diagram</td>
      <td>
        <img src="https://i.imgur.com/hwcK3cT.jpg" title="Gantt Diagram" width="300" />
      </td>
    </tr>
  </tbody>
</table>

## 📖 Documentation

Check the online [documentation and demo](http://pintorajs.vercel.app/) for more details.
npm package: @pintora/target-wintercg
Description: Pintora standalone target thast can run in WinterCG runtime
Author: hikerpig
Latest version: 0.2.1

Stil at a very early stage.

Bundle a big JS including pintora and its dependencies and some Node.js module polyfills, so that it can run inside a WinterCG or other lightweight JS runtime.


```text
.
├── aliases // JS polyfills
├── build // build scripts
├── dist // output
├── fonts
├── package.json
├── runtime // runtime source
├── scripts // some local manual test scripts
└── types

10 directories, 5 files

```
npm package: @pintswap-v3/aptos-swap-sdk
Description: 🛠 An SDK for building applications on top of Pinkswap Aptos.
Latest version: 1.0.5

# PinkSwap Aptos Swap SDK

You can refer to the Uniswap SDK documentation [uniswap.org](https://docs.uniswap.org/sdk/2.0.0/).
npm package: @pintswap-v3/eslint-config-pink
Description: Eslint config for PinkSwap
Author: RabbitDoge
Latest version: 1.2.0

# eslint-config-pink

Pink Eslint config with:

- Airbnb config
- Typescript
- Prettier

## Usage

```
npx install-peerdeps --dev @pinkswap-libs/eslint-config-pink
```

Add `"extends": "@pinkswap-libs/eslint-config-pink"` to your eslint config file.