# pic2svg

> GNU PIC to SVG converter lib

Latest version **0.2.0** (published 2016-07-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install pic2svg
pnpm add pic2svg
yarn add pic2svg
bun add pic2svg
```

Provides the commands `pic2svg`, `pic2svg-install-tools`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2016-07-22 |
| First published | 2016-04-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Kay-Uwe |
| Maintainers | klorenz |
| Keywords | graphviz, svg, node, markdown |

## Links

- npm: https://www.npmjs.com/package/pic2svg
- Repository: https://github.com/klorenz/pic2svg
- Homepage: https://github.com/klorenz/pic2svg#readme
- Issues: https://github.com/klorenz/pic2svg/issues
- npm.io page: https://npm.io/package/pic2svg

## Dependencies (1)

- [tempfile](https://npm.io/package/tempfile.md) ^1.1.1

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2016-07-22
- 0.1.2 — 2016-04-21
- 0.1.1 — 2016-04-19
- 0.1.0 — 2016-04-19

## README

pic2svg
============

Provide a library rendering GNU PIC content into svg.

[x] provide a library function doing this
[x] provide a commandline tool doing this
[ ] provide a function, which can be added to expect server, 
    rendering the file on server and return the svg
[ ] provide a server-side script to render graphs

Default font is `Helvetica`, see http://infohost.nmt.edu/tcc/soft/plotutils/plotutils_10.html#SEC67
for possible fonts.

Install Dependencies
===================

There is a tool which installs all dependencies on Debian based systems and on OSX using
homebrew (this is not tested yet, I do not have an OSX machine, so feedback welcome)

```bash
  $ pic2svg-install-tools
```

API
===

```js
  pic2svg = require('pic2svg').pic2svg;
  pic2svg('box "Hello World" ; arrow ; circle "?"'); // returns svg

  graphviz2svg.digraph2svg('A -> B ; B -> C ; C -> A', {pic_font: 'Times'}); // --> returns svg


  // install all tools needed
  pic2svg_install = require('pic2svg/install')
  pic2svg_install()
```

---
_Source: https://npm.io/package/pic2svg · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
