This API is unmaintained and as far as we know, not used by anybody. See issue #19
This is a simple javascript/nodejs api client that connects to the fritzing parts data at https://fritzing.github.io/fritzing-parts. The api client support functions to fetch fzb, fzp and svg files.
docs
generated esdoc artifactlib
generated babel artifactsrc
the main sourcecodetest
jest test code
install with yarn
yarn add fritzing/fritzing-parts-api-client-js
or use npm
npm install fritzing/fritzing-parts-api-client-js --save
initialize an api client and fetch /fzps endpoint
const {FritzingPartsAPIClient} = require('fritzing-parts-api-client-js')
//import {FritzingPartsAPIClient} from 'fritzing-parts-api-client-js'
FritzingPartsAPIClient.getFzps()
.then((fzpz) => {
console.log(fzps)
})
.catch((err) => {
console.error(err)
})
The complete Api Documentation can be found here: Api Docs
clone the repository
git clone [email protected]:fritzing/fritzing-parts-api-client-js.git
make test
make lint
if you have lint errors you can try running make lint-fix
to fix the errors
to build an es5 compatible version run
make build
to generate the docs, run
make docs
if you want to open the docs after generating in your browser, run
make docs-open