masked_string

Version, currently master branch1 version
  • master branchlatestJul 31, 2019

github.com/denolfe/masked-string

Simple masked string as an object

3 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  masked_string:
    github: denolfe/masked-string
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.29.0
License
MIT
Author
Elliot DeNolf

Dependencies

This version declares no dependencies.

README

Masked String

Simple masked string wrapper class. Once instantiated, the unmasked value cannot be accessed. Normal methods like ==, +, and to_s are handled as well.

Installation

  1. Add the dependency to your shard.yml:
dependencies:
  masked_string:
    github: denolfe/masked-string
  1. Run shards install

Usage

require "masked_string"

masked = Masked::Str.new("123456789", 4)
masked.value #=> "*****6789"
masked.to_s  #=> "*****6789"

Contributing

  1. Fork it (https://github.com/denolfe/masked_string/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors