Socket
Socket
Sign inDemoInstall

bwip-js

Package Overview
Dependencies
0
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

3

dist/bwip-js-node.d.ts

@@ -1,2 +0,2 @@

// Type definitions for bwip-js 4.0.0 (2023-08-04)
// Type definitions for bwip-js 4.0.1 (2023-08-17)
//

@@ -99,2 +99,3 @@ // THIS DEFINITION FILE IS MACHINE GENERATED - DO NOT EDIT

export interface DrawingContext<T> {
setopts?(options: RenderOptions): void;
scale(sx: number, sy: number): [number, number] | null;

@@ -101,0 +102,0 @@ measure(

@@ -1,2 +0,2 @@

// Type definitions for bwip-js 4.0.0 (2023-08-04)
// Type definitions for bwip-js 4.0.1 (2023-08-17)
//

@@ -95,2 +95,3 @@ // THIS DEFINITION FILE IS MACHINE GENERATED - DO NOT EDIT

export interface DrawingContext<T> {
setopts?(options: RenderOptions): void;
scale(sx: number, sy: number): [number, number] | null;

@@ -97,0 +98,0 @@ measure(

@@ -1,2 +0,2 @@

// Type definitions for bwip-js 4.0.0 (2023-08-04)
// Type definitions for bwip-js 4.0.1 (2023-08-17)
//

@@ -95,2 +95,3 @@ // THIS DEFINITION FILE IS MACHINE GENERATED - DO NOT EDIT

export interface DrawingContext<T> {
setopts?(options: RenderOptions): void;
scale(sx: number, sy: number): [number, number] | null;

@@ -97,0 +98,0 @@ measure(

{
"name": "bwip-js",
"version": "4.0.0",
"version": "4.0.1",
"description": "JavaScript barcode generator supporting over 100 types and standards.",

@@ -5,0 +5,0 @@ "exports": {

@@ -10,9 +10,10 @@ # // Barcode Writer in Pure JavaScript

ones) are available. An exhaustive list of supported barcode types can be
found at the end of this document. Barcode images are generated as png (node-js) or to a canvas (browser).
found at the end of this document. Barcode images are generated as png (node-js) or to a canvas (browser)
or as SVG (all platforms).
| Version 4 has been released. The primary enhancement is built-in support for generating barcodes in SVG. You can read about the changes here: https://github.com/metafloor/bwip-js/discussions/299
> Version 4 has been released. The primary enhancement is built-in support for generating barcodes in SVG. You can read about the changes here: https://github.com/metafloor/bwip-js/discussions/299
## Status
* Current bwip-js version is 4.0.0 (2023-08-04)
* Current bwip-js version is 4.0.1 (2023-08-17)
* Current BWIPP version is 2023-04-03

@@ -26,3 +27,3 @@ * Node.js compatibility: 0.12+

* [Node.js](#nodejs-request-handler)
* [SVG (All Platforms)](#svg-usage)
* [SVG (All Platforms)](#svg-all-platforms)
* [React App](#react-usage)

@@ -66,3 +67,3 @@ * [React Native](#react-native)

demonstrates all of the features of bwip-js. The app is also available
in the root bwip-js directory. See [Demo Apps](#demo-apps).
in the root bwip-js directory. See [Demo HTML App](#demo-html-app).

@@ -357,5 +358,5 @@ ## Online Barcode API

When named encoders are imported, the `bcid` value in the options object is ignored.
When named encoders are called, the `bcid` value in the options object is ignored.
<a name="svg-usage"></a>
<a name="svg-all-platforms"></a>
## SVG (All Platforms)

@@ -374,3 +375,3 @@

textxalign: 'center', // Always good to set this
textcolor: 'ff0000', // Red text
textcolor: 'ff0000', // Red text
});

@@ -460,3 +461,3 @@ ```

<a name="react-native"></a>
## React Native Usage
## React Native

@@ -492,9 +493,9 @@ > Note: The react-native module requires an external dependency to polyfill

} catch (e) {
// `e` may be a string or Error object
// `e` may be a string or Error object
}
return (
<Image
style={{ height:img.height, width:img.width }}
source={{ uri:img.uri }}
/>
style={{ height:img.height, width:img.width }}
source={{ uri:img.uri }}
/>
);

@@ -518,3 +519,3 @@ };

When named encoders are imported, the `bcid` value in the options object is ignored.
When named encoders are called, the `bcid` value in the options object is ignored.

@@ -545,4 +546,4 @@ <a name="electron-example"></a>

Electron <script>document.write(process.versions.electron)</script>,
bwip-js <script>document.write(bwipjs.VERSION)</script>,
and BWIPP <script>document.write(bwipjs.BWIPP.VERSION)</script>.
bwip-js <script>document.write(bwipjs.BWIPJS_VERSION)</script>,
and BWIPP <script>document.write(bwipjs.BWIPP_VERSION)</script>.
<br><br><img id="myimg">

@@ -604,2 +605,3 @@ <pre id="output"></pre>

<a name="demo-html-app"></a>
## Demo HTML App

@@ -613,2 +615,3 @@

<a name="examples"></a>
## Examples

@@ -615,0 +618,0 @@

@@ -95,2 +95,3 @@ // Type definitions for bwip-js __BWIPJS_VERS__

export interface DrawingContext<T> {
setopts?(options: RenderOptions): void;
scale(sx: number, sy: number): [number, number] | null;

@@ -97,0 +98,0 @@ measure(

@@ -325,3 +325,2 @@

text:1,
binarytext:1,
scale:1,

@@ -328,0 +327,0 @@ scaleX:1,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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