Skip to content
Small snippet to show colored passwords
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
dist
src
tests
.gitignore
Makefile
README.md

README.md

VisualHash

Translates an <input> value to a collection of colors

Dependencies

VisualHash depends on an external hash implementation. At the moment it will try to find an use automatically, any of the following implementations:

Also, you're not forced to use any of this implementations, VisualHash accepts an option of hashFunction where you're free to use any hashing implementation, as long as your function accepts a string as first argument and returns a hash.

Getting Started

Documentation

(Coming soon)

Examples

(Coming soon)

Running Tests

Right now to run tests, you need to have node installed as well as the following packages (inside the tests folder):

  • mocha npm install mocha
  • chai npm install chai
  • jsdom npm install jsdom

Then either open the index.html in your browser window or run make test or make test-browser in your terminal from the root folder.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Also, please don't edit files in the "dist" subdirectory as they are generated automatically. You'll find source code in the "src" subdirectory!

TODO

  • Make Makefile to run tests, minify and create dist files.
  • Finish tests
  • Fix JSCoverage to better replicate the script usage
  • Write default CSS

License

Copyright (c) 2012 Luís Couto Licensed under the MIT License

Something went wrong with that request. Please try again.