JSPM

boleto-barcode-svg

0.1.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 26
    • Score
      100M100P100Q63246F
    • License MIT

    Generate brazilian boleto barcode in SVG

    Package Exports

    • boleto-barcode-svg

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (boleto-barcode-svg) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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