circuit-to-png
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

@tscircuit/circuit-to-png

Overview

@tscircuit/circuit-to-png is a TypeScript library that converts circuit "soup" (a JSON representation of circuit components) into PNG images. This library is part of the tscircuit ecosystem, which aims to provide tools for working with electronic circuits in a programmatic way.

Features

  • Convert circuit "soup" to PNG images
  • Support for both schematic and PCB layouts
  • TypeScript support for type safety and better developer experience

Installation

To install @tscircuit/circuit-to-png, use npm:

npm install @tscircuit/circuit-to-png

Usage

Here's a basic example of how to use @tscircuit/circuit-to-png:

import { soupToPng } from "@tscircuit/circuit-to-png";

const circuitSoup = {
  // Your circuit soup JSON here
};

const pngBuffer = await soupToPng(circuitSoup);

For more detailed usage instructions and API documentation, please refer to the source code and tests in the src directory.

Development

To set up the project for development:

  1. Clone the repository
  2. Install dependencies: npm install
  3. Run tests: npm test

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.

Related Projects

Readme

Keywords

none

Package Sidebar

Install

npm i circuit-to-png

Weekly Downloads

238

Version

0.0.4

License

none

Unpacked Size

4.98 kB

Total Files

5

Last publish

Collaborators

  • seveibar