certi
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

Certi

An configurable URL shortener for Certificates (and other things).

This is the core library part of Certi. If you just want to run a server, try certi-cli.

You can also try the demo on cert.deta.dev or certi.jacob.workers.dev.

Usage

Simply start with the default configs:

import { Certi } from "certi";

main();

async function main() {
    // create Certi instance in memory-store mode
    const certi = new Certi();

    // auto-check with Coursera for the existence of the certificate
    const result = await certi.create({ cert: "https://www.coursera.org/account/accomplishments/certificate/RZU3FVL3SWJ4" });

    if (result.success) {
        console.log(result.url);
    } else {
        console.error(result.error);
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i certi

Weekly Downloads

1

Version

0.1.6

License

MIT

Unpacked Size

13.7 kB

Total Files

6

Last publish

Collaborators

  • jacoblincool