fzp2js
Lightweight yet robust converter between FZP files and the JSON representation of Fritzing parts. Based on the FZP file format outlined in the Fritzing documentation and the JSON model outlined in fzp-js.
why fzp2js?
Both the Fritzing documentation and fzp-js have components of FZP files missing that were found in parts located in the resources/parts/core directory. To ensure that this library didn't miss those components, it was tested against all default Fritzing parts found in resources/parts/core until it could successfully produce identical versions. In addition, both the documentation and source code for fzp-js were used as a guide to ensure compatibility with existing software and specifications.
usage
const { FritzingPart } = require('fzp2js');
const fzp = ...
FritzingPart.fromFZP(fzp).then( (part) => {
});
documentation
The library is completely documented, following the JSDoc format. The documentation is hosted at karpawich.github.io/fzp2js.
the future
- Release as an npm and yarn package
- Travis integration for testing with sample FZP files
My next project is to make a converter for FZ (Fritzing sketch) files. If you'd like to collaborate, feel free to contact me at max.karpawich@gmail.com.
license
This library is licensed under the GNU GPLv3 license, similar to Fritzing itself.