Skip to content
tutvPublic

About

Turn your svg file to buffer.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

svgb

Generate svg to buffer with template.

Installation

npm install svgb

Example code

const svgb = require('svgb')
const path = require('path')


setImmediate(async () => {
    const svgFile = path.join(__dirname, 'number.svg')
    
    try {
        const artwork = await svgb.toBuffer(svgFile, {number: 1})
        console.log(artwork)
    } catch (e) {
        console.log("ERROR", e)
    }
})

About

Turn your svg file to buffer.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages