we-plugin-certification

We.js user certification plugin

Usage no npm install needed!

<script type="module">
  import wePluginCertification from 'https://cdn.skypack.dev/we-plugin-certification';
</script>

README

We.js user certification plugin

Add suport to generate user certifications in PDF, this plugin use the pdfkit module for render the certifications

Installation

we i we-plugin-certification

Configuration

project config/local.js file

    // ...
    certification: {
      textPositions: {
        middle: { l: 30, t: 350 },
        left: { l: 30, t: 150 },
        right: { l: 400, t: 150 },
        // use text positions to add others settings for move texts in your page like:
        top: { l: 400, t: 0 },
      }
    }

URLS:

Get user certifications:

/user/:userId([0-9]+)/certification

API

See plugin.js file

Certification generation process

TODO!

Links

License

under the MIT license.