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