Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

fritzing/fzp-js

Repository files navigation

Archived

This javascript code for parsing fzp files is no longer developed or maintained!





\

fzp-js Build Status

The fritzing fzp javascript library is for processing fritzing fzp xml data.
The Library can be used to load fzp's, parse and marshal to XML.

Installation

Install the npm package

npm install fritzing/fzp-js --save

or use yarn to install and add the dependency to your package.json

yarn add fritzing/fzp-js

Usage

Let's start with a simple szenario and load a fzp file and all svg's.
Documentation of the library can be found here

const {FZPUtils} = require('fzp-js');

FZPUtils.loadFZP('core/LED-generic-3mm.fzp')
.then((fzp) => {
  console.log('FZP', fzp);
})
.catch((err) => {
  console.log('ERROR:', err);
})

Development

yarn install
make test

and lint your files before you commit

make lint

to build an es5 compatible version run

make build

License

MIT-LICENSE