Project

catpants

0.0
No commit activity in last 3 years
No release in over 3 years
Just add the class 'catpants' to the password label and class of 'password' to the input and BOOM...password strength checker with emoji's ;)
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.10
~> 10.0
 Project Readme

Catpants

npm version

Password strength calculator on key up...with a cat emoji if your password is good enough. Everyone needs a strength calculator, everyone loves emoji's. Win win here! Vanilla javascript meow 😻!

Installation

Add this line to your application's Gemfile:

**** Specify gem version ****

gem 'catpants', '2.5.0'

And execute:

$ bundle

Usage

You need to require this in app.js

//= require catpants

You must have a html label element for the password field with a class of catpants.

<label class="catpants">

And a class of catpants-password on the password input

<input class="catpants-password">

Here's a RAILS example with form helpers

<div class="form-group">
  <%= label_tag :password, "Password", class:"catpants" %>
  <%= password_field_tag :password, "", class: "catpants-password" %>
</div>

RAILS with Simple Form example

<%= f.input :password, label_html: { class: 'catpants' }, input_html: {class:'catpants-password'} %>

Boom. Done.

Contributing

Bug reports and pull requests are welcome on GitHub at http://github.com/parkerdan/catpants. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.