0.1.0 • Published 4 years ago

boleto-barcode-svg v0.1.0

Weekly downloads
6
License
MIT
Repository
-
Last release
4 years ago

Generates a SVG string from a boleto barcode

Features

  • Only 500 bytes (minified and gzipped) bundled with microbundle and Size Limit controls the size.
  • No dependencies
  • Compatible with browser, node and deno
  • Easy to use, only one function with only one param

Install

yarn add boleto-barcode-svg

Usage

import { boletoBarcodeSvg } from "boleto-barcode-svg"

const number = "34195.00008 01233.203189 64221.470004 5 84410000002000"
const svg = boletoBarcodeSvg(number)
console.log(svg)

Credits

Based on the awesome work of Guilherme Araújo