
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
gerber-parser
Advanced tools
Streaming Gerber/drill file parser
A printed circuit board Gerber and drill file parser. Implemented as a Node transform stream that takes a Gerber text stream and emits objects to be consumed by some sort of PCB plotter.
Part of the tracespace collection of PCB visualization tools.
npm install --save gerber-parser
# or
yarn add gerber-parser
Or, use a script tag:
<script src="https://unpkg.com/gerber-parser@^4.0.0/dist/gerber-parser.min.js"></script>
<script>
// global variable gerberParser now available
var parser = gerberParser()
</script>
var fs = require('fs')
var gerberParser = require('gerber-parser')
var parser = gerberParser()
parser.on('warning', function(w) {
console.warn('warning at line ' + w.line + ': ' + w.message)
})
fs.createReadStream('/path/to/gerber/file.gbr')
.pipe(parser)
.on('data', function(obj) {
console.log(JSON.stringify(obj))
})
To run this module in a browser, it should be bundled with a tool like browserify or webpack. If you are using the script tag installation method instead, there will be a global variable gerberParser
available after you have included gerber-parser.min.js
.
See API.md
FAQs
Streaming Gerber/drill file parser
The npm package gerber-parser receives a total of 697 weekly downloads. As such, gerber-parser popularity was classified as not popular.
We found that gerber-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.