
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
ts-barcode-generator
Advanced tools
Simple barcode generator for frameworks like React, Preact, Qwik, Svelte, etc.
Created to be lightweight and easy to use.
Generated 1D barcodes can be resized freely horizontally and vertically. By default, they will take on the size of the parent element. QR codes will be scalable, preserve aspect ratio and their size also depends on width of parent element.
It might not be developed further. EAN13 might be the only format. Whether the project will be developed further depends on my willingness to work.
There was no browser API that I could use for generating 1D/2D barcodes in my projects. Among the libraries available on NPM, I found only one decent library that is written in pure JavaScript - bwip-js, which unfortunately does not have tree shaking. Bundled in my Vite project it takes about 230 kilobytes Gzipped.
So, as part of my TypeScript learning journey (and programming in general), I decided to see if I could create such a generator with the help of ChatGPT and GitHub Copilot. At the beginning, I will focus on the most important types of codes for me: EAN13 and QR.
import TsBarcodeGenerator from 'ts-barcode-generator';
const barcode = TsBarcodeGenerator.generate('7423522549551', 'EAN13');
console.log(barcode);
import TsBarcodeGenerator from 'ts-barcode-generator';
export const YourComponent = () => {
const barcode = TsBarcodeGenerator.generate('7423522549551', 'EAN13');
return (
<div className='p-6 bg-white fill-current text-black'>
<div dangerouslySetInnerHTML={{ __html: barcode }} />
</div>
);
};
If you see potential in this project and want to help - feel free to contribute. Any help is welcome.
You can contact me on Discord: Avaray#7534
You can find me on servers like: Astro Lounge (EN), Anthony's (EN), Programowanko TSH.io (PL).
FAQs
Simple Barcode Generator created in TypeScript
The npm package ts-barcode-generator receives a total of 2 weekly downloads. As such, ts-barcode-generator popularity was classified as not popular.
We found that ts-barcode-generator 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.