snapcode

SVG SNAPCODE

Usage no npm install needed!

<script type="module">
  import snapcode from 'https://cdn.skypack.dev/snapcode';
</script>

README

snapcode (npm)

npm version

Get SVG Snapcode

Install

$ npm install snapcode

Usage (in code)

var snapcode = require('snapcode');
snapcode.username(name: string, function(svg) {
        console.log(svg);
      });

Returns SVG.

Examples

var snapcode = require('snapcode');

snapcode.username("Test", function(svg) {
  console.log(svg);
});

Unit tests

Use Jasmine to create that type of tests.

$ npm run test