New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

code-128-encoder

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-128-encoder - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

examples/cli/asciiart.sh

2

package.json
{
"name": "code-128-encoder",
"version": "1.1.0",
"version": "1.2.0",
"description": "an optimizing encoder for your commandline, node.js and your browser",

@@ -5,0 +5,0 @@ "main": "index.js",

## code-128-encoder
an optimizing encoder for node.js, the commandline, and your browser.
an optimizing code-128 encoder for node.js, the commandline, and your browser.

@@ -79,3 +79,3 @@ **this is not a renderer!**

| ascii | ÑTestWÓ | the ascii characters of the encoded string |
| bars | 1101001000011011100010101100100001011110010010011110100111010001101100011101011 | a 1 represents a bar a 0 represents a space |
| bars | 11010010000110111000101011001... | a 1 represents a bar a 0 represents a space |
| weights | 2112142133111122141142121241123113212331112 | each number represents a width alternating between bars and spaces |

@@ -85,3 +85,10 @@ | codes | [ 104, 52, 69, 83, 84, 55, 106 ] | an array of code numbers as per the code 128 spec |

### Examples Folder
you can use this to write your own renderer.
Examples will follow...
in the examples Folder, there are a few example renderer.
the html folder holds examples for rendering barcodes client side in the browser using a base128 font, canvas or just divs. for the html examples to work, go to the examples/html folder, and do `bower install`
in the cli folder there is a ->svg->inkscape->png renderer, a plaintext renderer which renders the barcode using ascii art, and a latext rederer.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc