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

fritzing/fzp-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

69b5080 · Feb 7, 2023
Mar 5, 2018
Mar 28, 2018
Mar 28, 2018
Mar 28, 2018
Mar 28, 2018
Mar 11, 2018
Feb 23, 2018
Mar 8, 2018
Mar 8, 2018
Mar 11, 2018
Mar 6, 2018
Mar 28, 2018
Mar 28, 2018
Mar 28, 2018
Mar 28, 2018
Feb 7, 2023
Mar 28, 2018
Mar 28, 2018
Mar 28, 2018

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