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

gerbis

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gerbis

Gerber parser written in nearley for Typescript

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

Gerbis (Gerber Toolkit)

Simple toolkit for working with PCB Gerber files (and associated drill files).

Gerber Job File Specification Gerber Layer Specification Official Gerber Test Files

Installation

npm install gerbis

Usage

import { parseGerber } from "gerbis"

parseGerber(`
G04 Ucamco ex. 1: Two square boxes*
%MOMM*%
%FSLAX26Y26*%
%TF.Part,Other,example*%
%LPD*%
%ADD10C,0.010*%
D10*
X0Y0D02*
M02*
`)
/*
[
  { command_code: 'G04', comment: ' Ucamco ex. 1: Two square boxes' },
  { command_code: 'MO', unit: 'MM' },
  {
    command_code: 'FS',
    x_integer_digits: 2,
    x_fractional_digits: 2,
    y_integer_digits: 2,
    y_fractional_digits: 6
  },
  { command_code: 'TF', name: '.Part', values: [Array] },
  { command_code: 'LP', setting: 'dark' },
  {
    command_code: 'AD',
    aperture_identifier: 'D10',
    type: 'circle',
    diameter: 0.01
  },
  { command_code: 'Dnn', aperture_identifier: 'D10' },
  { command_code: 'D02', x: 0, y: 0 },
  { command_code: 'M02' }
]
*/

FAQs

Package last updated on 09 Apr 2024

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