Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
app-barcode-generator
Advanced tools
React native components for generating barcode and QRcode. The library provides two components according to the type of code you need to create
npm i @janiscommerce/app-barcode-generator
import {Barcode} from '@janiscommerce/app-barcode-generator';
import {Text} from 'react-native';
<Barcode value="1234534" format="EAN8" />;
<Barcode value="1234534" format="EAN8" text={<Text>1234534</Text>} />;
<Barcode value="1234534" format="EAN8" onError={(error) => console.log(error)} />;
Prop | Type | Description | default value | required |
---|---|---|---|---|
value | string | value to create barcode | yes | |
format | string | format of barcode. See barcode type | yes | |
text | function | React native component to show value below barcode | no | |
backgroundColor | string | Background color for barcode | #FFF | no |
onError | function | Callback to execute when has error | no |
import {QRCode} from '@janiscommerce/app-barcode-generator';
<QRCode value="1234534" />;
<QRCode value="1234534" size={150} />;
Prop | Type | Description | default value | required |
---|---|---|---|---|
value | string | value to create QRCode | yes | |
size | number | Set width and heigth of QRCode | 100 | no |
foregroundColor | function | React native component to show value below barcode | #000 | no |
backgroundColor | string | Background color for barcode | #FFF | no |
FAQs
![janis-logo](brand-logo.png)
We found that app-barcode-generator demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.