Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ins0 authored Jul 3, 2024
1 parent 7028c00 commit bc43b2c
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
# password-tools-js
# @mittwald/password-tools-js

![Tests](https://github.com/mittwald/password-tools-js/workflows/Compilation%20&%20Unit%20Tests/badge.svg)

A JS library to implement policy-driven password validation and generation

## Validate Passwords
## Installation

### Yarn
`yarn add @mittwald/password-tools-js`

### NPM
`npm install @mittwald/password-tools-js`

## Usage
### Validate Passwords

Example:

Expand All @@ -25,7 +36,7 @@ const policy = Policy.fromDeclaration(policyDeclaration);
const result = policy.validate("password#");
```

## Generate password/passphrase
### Generate password/passphrase

from a policy:

Expand All @@ -44,7 +55,7 @@ const password = Generator.generateAnyPassword();
const passphrase = Generator.generateAnyPassphrase();
```

## CLI
## CLI (Node)

```
❯ yarn password-tools-js
Expand Down

0 comments on commit bc43b2c

Please sign in to comment.