Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Sexy SVG QR-code generator
[ >> Online demo << ]
npm install sexy-qr
QRCode
Field | Type | Description |
---|---|---|
content | string | QR encoded value |
ecl | 'L' / 'M' / 'Q' / 'H' | Error correction |
Property | Description |
---|---|
matrix | Matrix array |
size | Side size of matrix |
Method | Values | Description |
---|---|---|
emptyCenter | (emptySize: number) | Remove points in center |
QRSvg
Field | Type | Description |
---|---|---|
fill | string | SVG fill color |
size | number | Size of SVG in px |
radiusFactor | number | Factor of points corner radius (0-1) |
cornerBlockRadiusFactor | number | Factor of big squares corner radius (0-3) |
cornerBlocksAsCircles | boolean | Draw big corner squares as circles |
roundOuterCorners | boolean | Round outer corners |
roundInnerCorners | boolean | Round inner corners |
preContent | string / func | Pre content of SVG code |
postContent | string / func | Post content of SVG code |
Property | Description |
---|---|
svg | Result SVG code |
paths | Array of path-strings |
pointSize | Side size of one qr point |
import { QRCode, QRSvg } from 'sexy-qr';
const svgCode = (() => {
const qrCode = new QRCode({
content: 'https://avin.github.io/sexy-qr',
ecl: 'M', // 'L' | 'M' | 'Q' | 'H'
});
const qrSvg = new QRSvg(qrCode, {
fill: '#182026',
cornerBlocksAsCircles: true,
size: 380, // px
radiusFactor: 0.75, // 0-1
cornerBlockRadiusFactor: 2, // 0-3
roundOuterCorners: true,
roundInnerCorners: true,
preContent: '<!-- QR Code -->',
});
return qrSvg.svg;
})();
Example 1 | Example 2 | Example 3 | Example 4 |
---|---|---|---|
MIT © avin
FAQs
Sexy SVG QR-code generator
The npm package sexy-qr receives a total of 56 weekly downloads. As such, sexy-qr popularity was classified as not popular.
We found that sexy-qr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.