https://github.com/UniversalDataTool/udt-to-svg
Convert Universal Data Tool files to SVGs for easy viewing.
https://github.com/UniversalDataTool/udt-to-svg
Last synced: 3 months ago
JSON representation
Convert Universal Data Tool files to SVGs for easy viewing.
- Host: GitHub
- URL: https://github.com/UniversalDataTool/udt-to-svg
- Owner: UniversalDataTool
- Created: 2020-08-22T15:48:10.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T16:11:42.000Z (almost 5 years ago)
- Last Synced: 2024-10-29T18:41:26.684Z (8 months ago)
- Language: JavaScript
- Size: 85.9 KB
- Stars: 0
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UDT to SVG
This project converts UDT samples to SVGs, this makes them viewable in a wide
variety of environments without loading the entire Universal Data Tool as a
Javascript library.The main goal of this library is comprehensive support of the UDT format. For
the most part, it should remain lightweight.If you run `node example.js`, you'll get a file that looks like this.

## Usage
To install: `npm install udt-to-svg`
```javascript
import { sampleToSvg } from "udt-to-svg"sampleToSvg(udtDataset.samples[0], { width: 400, height: 300 })
// Outputs: ....
```