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

multilang-password-generator

v1.1.3

Published

A versatile password generator for creating strong, unique passwords and PINs in multiple languages

Downloads

366

Readme

Generate Unique Password In Multiple Languages

This package provides a highly customizable password generator that supports multiple languages, strength levels, and password types. With a variety of options, this tool is perfect for developers who need to generate unique and secure passwords for their applications.

Benefits

  • Multi-Language Support: Generate passwords in multiple languages including Nepali, Hindi, Cyrillic, Arabic, Korean, Japanese, Spanish, Portuguese, German, Chinese, and English.
  • Flexible Strength Levels: Choose from three strength levels — normal, medium, and strong — to control the complexity of the generated passwords.
  • Customizable Password Types: Supports both password (alphanumeric with symbols) and pin (numeric only) password types.
  • Easy Integration: A simple API with customizable parameters that can be easily integrated into any JavaScript or Node.js project.
  • Open Source and Free: Licensed under the Apache-2.0 License, making it free to use and distribute in both personal and commercial projects.

By using this package, developers can quickly and easily generate secure passwords that fit specific language requirements and security standards, saving time and enhancing the security of their applications.

Installation

You can install this package via npm by running the following command:

npm i multilang-password-generator

If you're using frameworks like React or other environments that support ES Modules, make sure your package.json has the following:

{
  "type": "module"
}

This ensures your project can handle ES Module imports.

Alternatively, if you prefer not to install the package and want to use it directly in the browser, you can import it from a CDN link.

Usage

Once installed, you can import and use the password generator in your project like this:

import { generatePassword } from "password-generator";
/* Or via CDN if no installation is done: <script type="module" src="script.js"></script>
 import { generatePassword } from 'https://unpkg.com/[email protected]/index.js'; */

console.log(generatePassword(10, "password", "medium", "nepali"));   // e.g., "कखगचडत"
console.log(generatePassword(12, "password", "strong", "japanese")); // e.g., "たてとふ0$!あ"
console.log(generatePassword(15, "password", "medium", "spanish"));  // e.g., "ñáÑ3Bc78o9Mn" 
console.log(generatePassword(8, "password", "normal", "german"));    // e.g., "äößüabc" 
console.log(generatePassword(14, "password", "strong", "chinese"));  // e.g., "的大是123!@#国"

Parameters:

  • length (default: 8): The length of the password.
  • type (default: password): The type of password to generate. Use pin for numeric-only passwords and password for alphanumeric passwords with symbols.
  • strength (default: medium): The complexity of the password. Options are:
    • normal: Lower complexity (letters only).
    • medium: Medium complexity (letters and numbers).
    • strong: High complexity (letters, numbers, and symbols).
  • language (default: english): The language for the password. Supported languages include:
    • english
    • nepali
    • hindi
    • cyrillic
    • arabic
    • korean
    • japanese
    • spanish
    • portuguese
    • german
    • chinese

License

This project is licensed under the Apache-2.0 License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests to improve the functionality or add support for additional languages.


Developed with ❤️ by Darpan Adhikari.

Key Points:

  • Benefits: The README highlights the main features of your package, including multi-language support, flexible strength levels, and customizable password types.
  • Installation: Provides the npm installation command.
  • Usage: Includes a simple example of how to use the password generator in a project.
  • License: It mentions the Apache-2.0 license, ensuring transparency and permission for free use and distribution.