parser
/
5.0.0-alpha.0
parser 5.0.0-alpha.0
Install from the command line:
Learn more about npm packages
$ npm install @tracespace/parser@5.0.0-alpha.0
Install via package.json:
"@tracespace/parser": "5.0.0-alpha.0"
About this version
Parse Gerber/drill files into abstract syntax trees based on the unist format. Part of the tracespace collection of PCB visualization tools.
This module is one part of the tracespace render pipeline, and you may not need to use it directly. See @tracespace/core to integrate the full render pipeline into your project.
npm install @tracespace/parser@next
import fs from 'node:fs/promises'
import {parse} from '@tracespace/parser'
const gerberContents = await fs.readFile('gerber.gbr', 'utf-8')
const syntaxTree = parse(gerberContents)
await fs.writeFile('parse.json', JSON.stringify(syntaxTree, null, 2), 'utf-8')
Details
- parser
- tracespace
- over 1 year ago
- MIT
- 3 dependencies
Assets
- parser-5.0.0-alpha.0.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0