0.0.11 • Published 11 days ago

@tscircuit/soup-util v0.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
11 days ago

@tscircuit/soup-util

This is a small utility library for working with tscircuit soup

It reduces the amount of code to retrieve or join elements from the soup, it also neatly handles all the typing.

import su from "@tscircuit/soup-util"

const soup = [
  /* [ { type: "source_component", ... }, ... ] */
]

const pcb_component = su(soup).pcb_component.get("1234")

const source_component = su(soup).source_component.getUsing({
  pcb_component_id: "123",
})

const schematic_component = su(soup).schematic_component.getWhere({ width: 1 })

const source_traces = su(soup).source_trace.list({ source_component_id: "123" })
0.0.11

11 days ago

0.0.10

17 days ago

0.0.9

17 days ago

0.0.8

21 days ago

0.0.5

21 days ago

0.0.4

21 days ago

0.0.7

21 days ago

0.0.6

21 days ago

0.0.3

21 days ago

0.0.2

21 days ago

0.0.1

23 days ago