kicad-bom-generator
v0.0.4
Published
KiCad netlist (.net) and components (.cmp) to JSON BOM generator
Downloads
10
Maintainers
Readme
kicad-bom-generator.js
KiCad components (.cmp) and netlist (.net) to JSON converter.
Usage
First, npm install kicad-bom-generator
Then let's take a KiCad components file and netlist file like uhk-left-main.cmp and uhk-left-main.net and
var fs = require('fs');
var kicadBomGenerator = require('kicad-bom-generator');
var kicadComponents = fs.readFileSync(
'node_modules/kicad-bom-generator/test/uhk-left-main.cmp',
{encoding:'utf8'});
var kicadNetlist = fs.readFileSync(
'node_modules/kicad-bom-generator/test/uhk-left-main.net',
{encoding:'utf8'});
console.log(JSON.stringify(kicadBomGenerator(kicadComponents, kicadNetlist), null, 4));
This way you'll end up with uhk-left-main.json