Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alistratov committed Oct 14, 2024
1 parent 70521dc commit 2ea0ef8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ jobs:
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npx jest --coverage

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Calculate password strength.

## Synopsis
```js
import PasswordEntropy from "@alistratov/data-password-entropy";
PasswordEntropy.passwordEntropy('password'); // 35
PasswordEntropy.passwordEntropy('Vgk4@HDk6X7gEp7'); // 85
const { default: PasswordEntropy } = await import("data-password-entropy");
PasswordEntropy.passwordEntropy("password"); // 35
PasswordEntropy.passwordEntropy("Vgk4@HDk6X7gEp7"); // 85
```


Expand All @@ -15,7 +15,7 @@ The `data-password-entropy` package provides a function to calculate the entropy

## See also
Similar packages for other languages:
* [npm](https://www.npmjs.com/package/@alistratov/data-password-entropy)
* [npm](https://www.npmjs.com/package/data-password-entropy)
* [pypi](https://pypi.org/project/data-password-entropy/)
* [cpan](https://metacpan.org/pod/Data::Password::Entropy) (outdated)

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "data-password-entropy",
"version": "0.0.1",
"version": "0.0.2",
"description": "Calculate password strength.",
"main": "src/index.js",
"scripts": {
Expand All @@ -27,6 +27,6 @@
"devDependencies": {
"eslint": "^8.0.0",
"husky": "^7.0.4",
"jest": "^29.0.0"
"jest": "^29.7.0"
}
}

0 comments on commit 2ea0ef8

Please sign in to comment.