Socket
Socket
Sign inDemoInstall

pure-svg-code

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

6

barcode/index.test.js

@@ -7,3 +7,5 @@ const fs = require('fs');

it('equal', () => {
const svg = barcode('123', 'codabar');
const svg = barcode('123', 'codabar', {
showHRI: true
});
assert.equal(svg, fs.readFileSync(path.resolve(__dirname, 'barcode.svg'), {

@@ -18,3 +20,3 @@ encoding: 'utf8'

});
fs.writeFileSync('bar.svg', svg);
fs.writeFileSync(path.resolve(__dirname, 'barcode.svg'), svg);
});

@@ -6,5 +6,5 @@ var barcode = require('./barcode');

module.exports = {
barcode,
qrcode,
svg2url,
barcode: barcode,
qrcode: qrcode,
svg2url: svg2url
};
{
"name": "pure-svg-code",
"version": "1.0.4",
"version": "1.0.5",
"description": "generate qrcode & barcode to svg in pure javascript",

@@ -11,3 +11,6 @@ "keywords": [

"二维码",
"条形码"
"条形码",
"Node.js",
"Browser",
"小程序"
],

@@ -14,0 +17,0 @@ "main": "index.js",

@@ -12,1 +12,6 @@ const fs = require('fs');

});
it('out file', () => {
const svg = qrcode('123');
fs.writeFileSync(path.resolve(__dirname, 'qrcode.svg'), svg);
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc