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.
usps_intelligent_barcode
Advanced tools
usps_intelligent_barcode is a pure ruby gem to generate a USPS IMB (Intelligent Mail Barcode). More specifically, it generates the string of characters you should print using one of the USPS Intelligent Barcode fonts.
This project was forked from Ryan Taylor's https://github.com/rtlong/USPS-intelligent-barcode Long, in order to add tests and refactor. It is not a drop-in replacement: I renamed most methods and classes, and eliminated the #draw method.
$ gem install USPS-intelligent-barcode
#!/usr/bin/env ruby
require 'rubygems'
require 'usps_intelligent_barcode'
barcode_id = '01'
service_type = '234'
mailer_id = '567094'
serial_number = '987654321'
routing_code = '01234567891'
barcode = Imb::Barcode.new(barcode_id,
service_type,
mailer_id,
serial_number,
routing_code)
p barcode.barcode_letters
# => "AADTFFDFTDADTAADAATFDTDDAAADDTDTTDAFADADDDTFFFDDTTTADFAAADFTDAADA"
This gem is based upon standard USPS-B-3200H, which is linked to from Intelligent Mail Barcode for Mailpieces
These Ruby versions are supported (these are the rvm platform names):
For ruby-1.8.7 please see the deprecated USPS-intelligent-barcode gem.
Wayne Conrad kf7qga@gmail.com
Thanks to Ryan Taylor Long for his original work, without which I would have been lost in the USPS specification.
FAQs
Unknown package
We found that usps_intelligent_barcode demonstrated a not healthy version release cadence and project activity because the last version was released 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.