PHP 8.2.30
Preview: svg.js Size: 532 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/qrcode/lib/renderer/svg.js

const svgTagRenderer = require('./svg-tag')

exports.render = svgTagRenderer.render

exports.renderToFile = function renderToFile (path, qrData, options, cb) {
  if (typeof cb === 'undefined') {
    cb = options
    options = undefined
  }

  const fs = require('fs')
  const svgTag = exports.render(qrData, options)

  const xmlStr = '<?xml version="1.0" encoding="utf-8"?>' +
    '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">' +
    svgTag

  fs.writeFile(path, xmlStr, cb)
}

Directory Contents

Dirs: 1 × Files: 7

Name Size Perms Modified Actions
terminal DIR
- drwxr-xr-x 2026-02-27 09:45:04
Edit Download
1.47 KB lrw-r--r-- 2026-02-27 09:45:00
Edit Download
1.73 KB lrw-r--r-- 2026-02-27 09:45:00
Edit Download
1.92 KB lrw-r--r-- 2026-02-27 09:45:02
Edit Download
532 B lrw-r--r-- 2026-02-27 09:45:02
Edit Download
271 B lrw-r--r-- 2026-02-27 09:45:04
Edit Download
1.54 KB lrw-r--r-- 2026-02-27 09:45:04
Edit Download
2.83 KB lrw-r--r-- 2026-02-27 09:45:04
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).