🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-jsbarcode

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-jsbarcode

JSBarcode component for React

1.0.1
latest
Source
npm
Version published
Weekly downloads
5.9K
-9.57%
Maintainers
1
Weekly downloads
 
Created
Source

react-jsbarcode

npm Known Vulnerabilities Code Climate Codacy Badge GitHub license Twitter

About

This is a React component wrapping up jsbarcode. Written as a React functional component using React hooks.

Demo

Edit react-jsbarcode Open in StackBlitz

Installation

using NPM

npm i react-jsbarcode

using yarn

yarn add react-jsbarcode

using PNPM

pnpm add react-jsbarcode

Usage

  • Basic usage
import { ReactBarcode } from 'react-jsbarcode';

const App = () => {
  return <ReactBarcode value="ABC123" />;
};
  • Advanced usage
import { ReactBarcode } from 'react-jsbarcode';

const App = () => {
  return <ReactBarcode value="ABC123" options={{ format: 'code128' }} renderer="svg" />;
};

For all options refer jsbarcode wiki.

Renderers

JSBarcode supports rendering to SVG, image and canvas. Default renderer is 'svg'.

Edit react-jsbarcode Open in StackBlitz

Keywords

react

FAQs

Package last updated on 20 May 2024

Did you know?

Socket

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.

Install

Related posts