1.1.0 • Published 2 years ago

foo-card v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

FooCard

NPM version Downloads per month

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:

FooCard Docs

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
1.1.0

2 years ago

1.0.1

2 years ago