0.0
No commit activity in last 3 years
No release in over 3 years
Name Masker gem for personal needs.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 5.0
~> 10.0
 Project Readme

NameMasker Gem Version Ruby

Name masker is a gem for masking first name and last name.

Installation

Add this line to your application's Gemfile:

gem 'name_masker'

And then execute:

$ bundle

Or install it yourself as:

$ gem install name_masker

Usage

name_masker gem has 5 commands:

first_name = 'Lorem'
last_name = 'Ipsum'

puts NameMasker.mask_first_name(first_name)
# Lo***

puts NameMasker.mask_last_name(last_name)
# ***um

puts NameMasker.mask(first_name, last_name)
# Lo*** ***um

puts NameMasker.mask_email('sadie@casperoberbrunner.co')
# '*a***@c***'

puts NameMasker.mask_phone_number('1', '2025550132')
# +12*******32