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

@santi100/passgen

v1.0.7

Published

A random password generator written in JavaScript.

Downloads

2

Readme

Random Password Generator in JavaScript

This is a password generator that generates random passwords. The resulting passwords don't make any sense, but they are random (and thus, very secure). You can specify a lot of different parameters to modify the way the program generates passwords in the pgconfig.json file.

The settings file should be located in the same directory as the program, and it can alter these parameters:

  • The characters to use in the password: specify the chars key. The value of this key is a string of characters to use.
  • Booting to verbose mode or not: specify the verboseMode key. The value of this key is a boolean; if it is true, then the program enters verbose mode, otherwise, well, it doesn't.
  • The password's length: specify the passwordLength key. The value of this key is an integer; the length of the password.
  • Entering an infinite loop or not: specify the infiniteLoop key. The value of this key is a boolean; if it is true, then the program enters an infinite loop, otherwise, well, it doesn't.
  • The amount of passwords to generate: specify the passwordCount key. The value of this key is an integer; the amount of passwords to generate.

Usage

To use this CLI, you have four methods:

Through Source Control

  • Clone this repo.
  • Enter the directory where you cloned the repo.
  • Run npm install to install dependencies.
  • Run the CLI by running node ..

Through Source Distributables

  • Enter the dist directory.
  • Download the corresponding executable for your platform.
  • Run the CLI by running this file.

Through Distributable Releases

  • Enter our latest release.
  • Download the corresponding executable for your platform.
  • Run the CLI by running this file.

Through Global Install Via NPM

  • Run npm install -g @santi100/passgen@latest.
  • Run the CLI by running npx @santi100/passgen.

You can now specify these flags on the command line or set the proper keys in the pgconfig.json file:

  • -h or --help: Show a help message.
  • -a or --about: Show about message.
  • -v or --verbose: Enable verbose mode.
  • -i or --infinite: Enable infinite mode.
  • -c or --create: Scaffold a basic settings file.
  • -p or --prompt: Override flags and prompt the user directly.
  • -V or --version: Show version. Since none of the flags require any parameters, you can actually join them, like this: -vi.