Skip to content

Commit

Permalink
Merge pull request #8 from tscircuit/readme-update
Browse files Browse the repository at this point in the history
  • Loading branch information
imrishabh18 authored Jul 26, 2024
2 parents eee385f + d4357bd commit f11b4bf
Show file tree
Hide file tree
Showing 6 changed files with 398 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,5 @@ dist
node_modules/
dist/

package-lock.json
package-lock.json
.aider*
56 changes: 55 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,55 @@
# @tscircuit/soup-to-png
# @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:

```bash
npm install @tscircuit/circuit-to-png
```

## Usage

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

```typescript
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

- [tscircuit](https://github.com/tscircuit/tscircuit) - The main tscircuit project
Binary file removed bun.lockb
Binary file not shown.
Loading

0 comments on commit f11b4bf

Please sign in to comment.