npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

password-ninja

v1.0.3

Published

password-ninja is designed to quickly generate passwords

Downloads

16

Readme

password-ninja

password-ninja is designed to quickly generate passwords

Site | Docs

Installation

Using npm:

$ npm install --save password-ninja

Usage

var generatePassword = require('password-ninja');

API

generatePassword(length, options);
  • length {Number}: (optional) The parameter that takes the length of the password
  • options {Object}: (optional) Optional parameters

length

the length of the string to generate The default value is "8"

  • generatePassword(12) will generate something like this 02amNJa49oqC
  • generatePassword(32) will generate something like this IEa5V8X2S27pLIwAKF6KiH41kCm089Qw

options

the object that gets parameters

minAmountOfLowerChars

parameter that is responsible for the minimum number of lower characters The default value is "1"

  • generatePassword(12, {minAmountOfLowerChars: 8}) will generate something like this YcxyC2Tnwtmd
  • generatePassword(12, {minAmountOfLowerChars: 0}) will generate something like this ZXY05Q9654SU
  • generatePassword(12, {minAmountOfLowerChars: 1}) will generate something like this K3sHYJNp836N

minAmountOfUpperChars

parameter that is responsible for the minimum number of upper characters The default value is "1"

  • generatePassword(12, {minAmountOfUpperChars: 8}) will generate something like this SLHA0BHTyF6a
  • generatePassword(12, {minAmountOfUpperChars: 0}) will generate something like this 58m634m3qys9
  • generatePassword(12, {minAmountOfUpperChars: 1}) will generate something like this 1rg5I5A0u2Xc

minAmountOfNums

parameter that is responsible for the minimum number of numbers The default value is "1"

  • generatePassword(12, {minAmountOfNums: 8}) will generate something like this 98107V706Rr8
  • generatePassword(12, {minAmountOfNums: 0}) will generate something like this WqlKlwfEOvHB
  • generatePassword(12, {minAmountOfNums: 1}) will generate something like this 88eupL0KpLWD

minAmountOfSymbs

parameter that is responsible for the minimum number of symbols The default value is "0"

  • generatePassword(12, {minAmountOfSymbs: 8}) will generate something like this );3'@wW>?'.2
  • generatePassword(12, {minAmountOfSymbs: 0}) will generate something like this 70T0d5Tp6vjV
  • generatePassword(12, {minAmountOfSymbs: 1}) will generate something like this dBI55':Kt17>

toLowerCase

parameter that is used to switch characters to lower case The default value is "false"

  • generatePassword(12, {toLowerCase: true}) will generate something like this e1kgpsk2vqrc
  • generatePassword(12, {toLowerCase: false}) will generate something like this 2Dp37GXW4rdF

toUpperCase

parameter that is used to switch characters to upper case The default value is "false"

  • generatePassword(12, {toUpperCase: true}) will generate something like this T4284NI6NE4Z
  • generatePassword(12, {toUpperCase: false}) will generate something like this 6Oa7tS9v5Ei0

Usage Examples

  • generatePassword(6, {minAmountOfNums: 0, toUpperCase: true}) will generate something like this EHSCQI
  • generatePassword(20, {minAmountOfLowerChars: 10, minAmountOfUpperChars: 10, minAmountOfNums: 0}) will generate something like this nQJCYbnYbzqVuvDIqcCE
  • generatePassword(12, {minAmountOfSymbs: 1, toLowerCase: true}) will generate something like this d6=#0'89uf,e

License

Copyright © 2018, Dmitry Katyushin. Released under the MIT License.