Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yigitsadic/name_masker
Mask first name and last name easily.
https://github.com/yigitsadic/name_masker
Last synced: about 1 month ago
JSON representation
Mask first name and last name easily.
- Host: GitHub
- URL: https://github.com/yigitsadic/name_masker
- Owner: yigitsadic
- Created: 2020-02-25T07:10:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-29T19:12:43.000Z (almost 5 years ago)
- Last Synced: 2024-04-24T18:42:03.880Z (9 months ago)
- Language: Ruby
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NameMasker [![Gem Version](https://badge.fury.io/rb/name_masker.svg)](https://badge.fury.io/rb/name_masker) ![Ruby](https://github.com/yigitsadic/name_masker/workflows/Ruby/badge.svg?branch=master)
Name masker is a gem for masking first name and last name.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'name_masker'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install name_masker
## Usage
name_masker gem has 5 commands:
```ruby
first_name = 'Lorem'
last_name = 'Ipsum'puts NameMasker.mask_first_name(first_name)
# Lo***puts NameMasker.mask_last_name(last_name)
# ***umputs NameMasker.mask(first_name, last_name)
# Lo*** ***umputs NameMasker.mask_email('[email protected]')
# '*a***@c***'puts NameMasker.mask_phone_number('1', '2025550132')
# +12*******32
```