Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xsellier/password-maker
Generate a password randomly (optimized).
https://github.com/xsellier/password-maker
Last synced: 8 days ago
JSON representation
Generate a password randomly (optimized).
- Host: GitHub
- URL: https://github.com/xsellier/password-maker
- Owner: xsellier
- License: isc
- Created: 2014-09-30T17:34:41.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-21T03:25:45.000Z (almost 7 years ago)
- Last Synced: 2023-08-13T07:51:00.035Z (over 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
password-maker [![Build Status](https://travis-ci.org/xsellier/password-maker.svg)](https://travis-ci.org/xsellier/password-maker)
==============Generate a password randomly (optimized).
## Usage
password-maker can be used like described below:``` js
var generatePassword = require("password-maker");// get a 8-character random password
var shortPassword = generatePassword(8);// get a 32-character password with advanced options
var options = {
uppercase: false,
symbols : false,
numbers : true
};
var longPassword = generatePassword(options, 32);
```### What if ?
#### I declare a negative password length ?
Min password length is 4, if you set -1 or 3, length will be automatically set to 4.
#### I set a wrong option type ?
Behavior could be defined following this https://dorey.github.io/JavaScript-Equality-Table/#if-statement
## Installation
### Installing password-maker
```
npm install password-maker --save
```## Run Tests
Tests are written with mocha/chai.``` bash
$ npm test
```## Changelog
1.1.3
- Fix issue with password requirement generation
- Add unit tests1.1.2
- Remove lodash from dependencies
- Upgrade devDependencies
- Add a min password size1.0.5
- Fix README.md typo1.0.4
- Add examples in README.md
- Make function 'generatePassword' callable1.0.3
- Fix typo in README.md
1.0.2
- Update README.md file
1.0.1
- Fix a bug with password index overwritten
- Add more unit test !1.0.0
- Add password generation
- Add unit test0.1.0
- First release, everything was hard-coded