New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@tracespace/core

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tracespace/core

Use Gerber/drill files to create an SVG render of a finished PCB in Node.js or the browser.

next
latest
Source
npmnpm
Version
5.0.0-alpha.0
Version published
Weekly downloads
16K
-1.07%
Maintainers
1
Weekly downloads
 
Created
Source

@tracespace/core

npm

Use Gerber/drill files to create an SVG render of a finished PCB in Node.js or the browser. Part of the tracespace collection of PCB visualization tools.

This library contains the main logic for tracespace's render pipeline, built up of the following lower-level libraries:

usage

import fs from 'node:fs/promises'
import {read, plot, renderLayers, renderBoard} from '@tracespace/core'

const files = [
  'top-copper.gbr',
  'top-solder-mask.gbr',
  'top-silk-screen.gbr',
  'bottom-copper.gbr',
  'bottom-solder-mask.gbr',
  'outline.gbr',
  'drill.xnc',
]

const readResult = await read(files)
const plotResult = plot(readResult)
const renderLayersResult = renderLayers(plotResult)
const renderBoardResult = renderBoard(renderLayersResult)

await Promise.all([
  fs.writeFile('top.svg', renderBoardResult.top)
  fs.writeFile('bottom.svg', renderBoardResult.bottom)
])

Keywords

gerber

FAQs

Package last updated on 16 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts