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.
docsgenerated esdoc artifactlibgenerated babel artifactsrcthe main sourcecodetestjest test code
install with yarn
yarn add fritzing/fritzing-parts-api-client-jsor use npm
npm install fritzing/fritzing-parts-api-client-js --saveinitialize 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.gitmake test
make lintif you have lint errors you can try running make lint-fix to fix the errors
to build an es5 compatible version run
make buildto generate the docs, run
make docsif you want to open the docs after generating in your browser, run
make docs-open