24 Commits

Author SHA1 Message Date
Nick Playfair
99793599dd Remove most dependency on fs-extra 2025-06-14 22:14:45 +01:00
Nick Playfair
d0544aa518 Properly test extraction methods 2025-06-14 21:12:42 +01:00
Nick Playfair
fab6f685cc replace all fs.existsSync with native node 2025-06-13 22:11:46 +01:00
Nick Playfair
5a0641904a Use default node fs for dir checking 2025-06-13 21:12:24 +01:00
Nick Playfair
0b41a4e56f Fix formatting and add a few comments 2025-06-13 19:37:22 +01:00
7dd6e99ef5 pass layer names to getLayers
Update the getLayers method to take in an array of the layer filenames you expect to be in the gerber archive. This will allow the package to be used with gerbers that output different filenames for each layer then EAGLE.
2021-02-07 20:03:37 +00:00
60bd889a11 implement gerberToStream
Method to return a PNG stream instead of a temporary file
2021-02-05 14:31:31 +00:00
b25dca32c0 Remove old code 2021-02-03 16:45:54 +00:00
444e8a6b2a Export class instead of several functions 2021-02-02 19:49:47 +00:00
2933451b18 Check that dirs exist and handle errors 2021-02-02 16:47:09 +00:00
d5deb0f033 Remove unneeded function 2021-02-02 16:46:14 +00:00
c0b71f4ee9 Use new getLayers function and adm-zip
New extractArchive function uses adm-zip instead of node-stream-zip, fixes bug where it wouldn’t wait for all files to be extracted before creating layers.

Replace old getLayers function with the new one that takes in a folder of layers that have already been extracted from a zip archive
2021-02-02 01:11:21 +00:00
3fab65eaac Export all funcs 2021-02-01 23:04:30 +00:00
9d2c8f1778 fix extractArchive 2021-02-01 23:04:11 +00:00
e7e2f02581 Test getLayers 2021-02-01 23:03:00 +00:00
6a874505a1 Reformat code 2021-01-31 20:37:00 +00:00
a21229c6f2 Reformat code 2021-01-30 23:05:58 +00:00
3314ac6337 Fixes 2021-01-30 22:50:23 +00:00
8662e3974e Tidy up
Remove testing code and old functions
2021-01-27 21:23:15 +00:00
eb7d95fba3 getLayers working 2021-01-27 20:39:57 +00:00
a1b06686fe Start working on file processing functions 2021-01-27 20:18:30 +00:00
3eb6f68926 Sample data 2021-01-26 23:51:43 +00:00
c88a879121 Image processing
Use pcb-stackup to generate svg data from gerber files and then use sharp to generate a png file from the svg buffer
2021-01-26 23:39:35 +00:00
bec6b26269 Initial commit 2021-01-26 21:47:10 +00:00