Skip to content

Commit 692cbd1

Browse files
authored
Merge pull request #17 from lucasgdb/feat/update-dependencies
Feat/update dependencies
2 parents 350a8c0 + 7486a18 commit 692cbd1

31 files changed

+2759
-5917
lines changed

.editorconfig

Lines changed: 0 additions & 8 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.travis.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,21 @@ language: node_js
33
sudo: false
44

55
node_js:
6-
- 12
7-
- 14
8-
- 16
6+
- 20
7+
- 22
8+
9+
cache:
10+
npm: false
11+
directories:
12+
- '~/.pnpm-store'
13+
14+
before_install:
15+
- corepack enable
16+
- corepack prepare pnpm@latest-9 --activate
17+
- pnpm config set store-dir ~/.pnpm-store
918

1019
install:
11-
- yarn
20+
- pnpm install
1221

1322
script:
14-
- yarn test
23+
- pnpm test

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ If you'd like to contribute, please fork this repository, change the branch typi
44

55
- git switch dev
66
- git checkout -b new-branch-name
7-
- make your changes
8-
- git push -u origin new-branch-name
7+
- make your changes and commit them
8+
- git push -u origin feat/new-branch-name
99
- open a PR :D

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ or
2323
yarn add generate-strings
2424
```
2525

26+
or
27+
28+
```sh
29+
pnpm add generate-strings
30+
```
31+
2632
### In-browser
2733

2834
Within your document (each one for the desired function)
@@ -43,19 +49,19 @@ or
4349

4450
1. Generate random strings:
4551

46-
```sh
52+
```ts
4753
',9nlg4^]'
4854
```
4955

5056
2. Generate strings with mask:
5157

52-
```sh
58+
```ts
5359
'@#$%-@#$%-@#$%-@#$%' = 'Aa!0-Aa!0-Aa!0-Aa!0'
5460
```
5561

5662
3. Generate passwords with password-strength tester:
5763

58-
```sh
64+
```ts
5965
{ password: '2dt4hKIPO*=He', strength: 'high' }
6066
```
6167

@@ -71,7 +77,7 @@ After you've included it into your project, using the module is straightforward:
7177

7278
### Server-side
7379

74-
```javascript
80+
```ts
7581
// require the module
7682
const {
7783
generateRandomString,
@@ -86,7 +92,7 @@ console.log(generateRandomPassword());
8692

8793
### In-browser
8894

89-
```javascript
95+
```ts
9096
// in the browser, including the script will make the function available.
9197
console.log(generateRandomString());
9298
console.log(generateRandomStringWithMask());
@@ -98,7 +104,7 @@ console.log(generateRandomPassword());
98104
The module may be configured as follows:
99105
OBS: The settings shown below are the defaults.
100106

101-
```javascript
107+
```ts
102108
import { generateRandomString } from 'generate-strings';
103109

104110
// and then:
@@ -152,7 +158,7 @@ const randomString = generateRandomString();
152158

153159
## Examples
154160

155-
```typescript
161+
```ts
156162
import {
157163
generateRandomString,
158164
generateRandomStringProps,
@@ -166,7 +172,7 @@ const settings: generateRandomStringProps = {
166172
const randomStringWithMask = generateRandomString(settings); // will return a string like: bov$Ia@}Rr8gzU*
167173
```
168174

169-
```typescript
175+
```ts
170176
import {
171177
generateRandomStringWithMask,
172178
generateRandomStringWithMaskProps,
@@ -180,7 +186,7 @@ const settings: generateRandomStringWithMaskProps = {
180186
const randomStringWithMask = generateRandomStringWithMask(settings); // will return a string like: [email protected]
181187
```
182188

183-
```typescript
189+
```ts
184190
import {
185191
generateRandomPassword,
186192
generateRandomPasswordProps,

babel.config.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

biome.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"linter": {
7+
"enabled": true,
8+
"rules": {
9+
"recommended": true
10+
}
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"indentWidth": 2,
15+
"indentStyle": "space",
16+
"lineWidth": 120,
17+
"formatWithErrors": true
18+
},
19+
"files": {
20+
"ignore": ["dist/**/*"]
21+
}
22+
}

dist/generateRandomPassword.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/generateRandomString.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)