Socket
Book a DemoInstallSign in
Socket

password-maker

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

password-maker

Generate a password randomly

1.1.4
latest
Source
npmnpm
Version published
Weekly downloads
147
-10.91%
Maintainers
1
Weekly downloads
 
Created
Source

password-maker pipeline status

Generate a password randomly (optimized).

Usage

password-maker can be used like described below:

  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.

  $ npm test

Changelog

1.1.3

  • Fix issue with password requirement generation
  • Add unit tests

1.1.2

  • Remove lodash from dependencies
  • Upgrade devDependencies
  • Add a min password size

1.0.5

  • Fix README.md typo

1.0.4

  • Add examples in README.md
  • Make function 'generatePassword' callable

1.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 test

0.1.0

  • First release, everything was hard-coded

Keywords

password

FAQs

Package last updated on 05 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.