1.0.4 • Published 2 years ago

@tscircuit/eagle-xml-converter v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Eagle XML to JSON Converter

Converts Eagle XML files (example input) to JSON (example output).

Usage

yarn add @tscircuit/eagle-xml-convert

import fs from "fs"
const file = await fs.promises.readFile("tests/attiny/attiny.xml")

const eagleJSON = parseEagleXML(file.toString())

console.dir(eagleJSON, { depth: null })
/*
{
  version: '7.1.0',
  settings: { alwaysvectorfont: 'no', verticaltext: 'up' },
  grid: {
    distance: 0.1,
    unitdist: 'inch',
    unit: 'inch',
    style: 'lines',
    multiple: 1,
    display: 'no',
    altdistance: 0.01,
    altunitdist: 'inch',
    altunit: 'inch'
  },
  library: {
    packages: [
      {
        circle: {
          x: -4.44,
          y: 4.4,
          radius: 0.1,
          width: 0.2,
          layer: 21
        },
        wire: [
          {
            x1: -1.9475,
            y1: 4.425,
            x2: 1.9475,
            y2: 4.425,
            width: 0.127,
            layer: 21
          },
...
*/
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago