foo-card
v1.1.0
Published
A package used to create digital cards, like an e-ID
Downloads
4
Maintainers
Readme
FooCard
Welcome to FooCard. FooCard is a Javascript library used to create unique and digitally signed identity cards or any custom user generated images.
Quick Setup
First install FooCard from npm
npm install foo-card
or yarn add foo-card
if you use prefer
HTML
First add a canvas element with an id of #foocard
to your html page.
<canvas id="foocard"></canvas>
If you need to change the canvas id, you can specify that when initializing the FooCard instance. More info can be found in the docs
Javascript
Then import FooCard as a javascript module.
import { FooCard } from "foo-card"
const fc = new FooCard({})
fc.loadImage().then(() => {
// ...
})
To see more information and configuration options on FooCard, the documentation is available here:
Examples | Showcase
Here are some examples where we see some use-cases of FooCard
For Development Purposes
First, install all packages npm install
and then run the the build command to compile the Typescript code:
npm run build