🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@tracespace/parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tracespace/parser

Gerber and NC drill file parser

latest
Source
npmnpm
Version
5.0.0-next.0
Version published
Weekly downloads
17K
-19.74%
Maintainers
1
Weekly downloads
 
Created
Source

@tracespace/parser

A parser for printed circuit board manufacturing files. Compiles Gerber and NC drill files into abstract syntax trees based on the unist format.

Part of the tracespace collection of PCB visualization tools.

This package is still in development and is not yet published

usage

import {createParser} from '@tracespace/parser'
// commonjs is cool, too
// const {createParser} = require('@tracespace/parser')

const parser = createParser()
parser.feed(/* ...some gerber string... */)
const tree = parser.results()

script tag

If you're not using a bundler and you want to try out the parser in a browser, you can use a script tag:

<script src="https://unpkg.com/@tracespace/parser"></script>
<script>
  // global variable TracespaceParser now available
  const parser = TracespaceParser.createParser()
</script>

Keywords

gerber

FAQs

Package last updated on 28 Jun 2020

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