Socket
Book a DemoInstallSign in
Socket

hex_formatter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hex_formatter

0.3.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

HexFormatter

Convert IPFS addresses and Digix Asset addresses to hexadecimal and back

Installation

gem install hex_formatter

Gemfile

gem 'hex_formatter'

Usage

require 'hex_formatter'
hf = HexFormatter::Ipfs.new
hf.encode('0x275406a99ea1b7ac819064670c34a2cbebab79c46c85b7c0e9f3feb4b6364dc5')
# => Qme79xMyGG3QTL2X9rvj5pqQu3KjTUJboN5xLDwTnoFv8C
hf = HexFormatter::Ipfs.new 
hf.decode('Qme79xMyGG3QTL2X9rvj5pqQu3KjTUJboN5xLDwTnoFv8C')
# => "0x275406a99ea1b7ac819064670c34a2cbebab79c46c85b7c0e9f3feb4b6364dc5"

FAQs

Package last updated on 04 Jul 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.