Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

barby-chunky_png

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barby-chunky_png

  • 0.3.4
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Barby is a Ruby barcode generator. It does not depend on other libraries (for the core functionality) and is easily extentable.

The barcode objects are separated from the process of generating graphical (or other) representations. A barcode's only responsibility is to provide a string representation consisting of 1s and 0s representing bars and spaces. This string can then be used to generate (for example) an image with the RMagickOutputter, or an ASCII string such as the one below.

See Barby::Barcode and Barby::Outputter for more information.

require 'barby' require 'barby/outputter/ascii_outputter'

barcode = Barby::Code128B.new('BARBY')

puts barcode.to_ascii

# # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### #

# # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### #

# # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### #

# # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### #

# # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### #

# # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### #

# # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### #

# # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### #

# # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### #

# # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### #

        B          A          R          B          Y                                  

FAQs

Package last updated on 16 Nov 2011

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

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