1.0.5 • Published 4 years ago

svgb v1.0.5

Weekly downloads
48
License
ISC
Repository
github
Last release
4 years ago

svgb

Generate svg to buffer.

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)
    }
})
1.0.5

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago