No commit activity in last 3 years
No release in over 3 years
Embulk filter plugin to convert a hex value to and from base58.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.0
>= 10.0
 Project Readme

Base58 filter plugin for Embulk

Build Status Coverage Status

Embulk filter plugin to convert hex to base58 and vice versa.

Overview

  • Plugin type: filter

Configuration

  • columns: Columns to encode/decode (array, required)
    • name: Name of input column (string, required)
    • encode: Whether to encode or decode the value. (boolean, default:true)
    • prefix: Adds a prefix when encoding, or strips the prefix when decoding. (string, default:"")
    • new_name: New column name if you want to rename (string, default: null)

Example

filters:
  - type: base58
    columns:
    - { name: _id }
    - { name: account_id, encode: true, prefix: account_, new_name: public_account_id }

Build

$ ./gradlew gem  # -t to watch change of files and rebuild continuously

Hat tip to kamatama41/embulk-filter-hash