Skip to content

Commit ec63633

Browse files
committed
Add MIT license in readme
1 parent 91e6a86 commit ec63633

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
The purpose of this module is to provide validators for commonly used strings. This module makes sure that these different kinds of strings are in the correct format so that they can be used without problems in an application.
44

5-
# Validators
5+
# Available Validators
66

7-
### Date validation
7+
## Date validation
88

99
Validates a date string in three different formats:
1010

@@ -15,7 +15,7 @@ Validates a date string in three different formats:
1515
- **ISO standard format**:
1616
- 2025-01-10
1717

18-
### Email validation
18+
## Email validation
1919

2020
Validates using the the RFC 5322 Internet Message Format standard.
2121

@@ -37,7 +37,7 @@ Validates using the the RFC 5322 Internet Message Format standard.
3737
3838
3939

40-
### Password validation
40+
## Password validation
4141

4242
Validates a password string against complexity requirements (uppercase, lowercase, number, special character) and a minimum length.
4343

@@ -48,7 +48,7 @@ Validates a password string against complexity requirements (uppercase, lowercas
4848
- Has a special character.
4949
- Is at least 12 characters long.
5050

51-
### Username validation
51+
## Username validation
5252

5353
Validates a username string to make sure that it is easy to read.
5454

@@ -57,7 +57,7 @@ Validates a username string to make sure that it is easy to read.
5757
- Must be between 3 and 12 characters long.
5858
- Cannot have consecutive dashes or underscores.
5959

60-
### URL Validation
60+
## URL Validation
6161

6262
Validates an URL string to make sure it is in a usable format for HTTP requests. Only validates http or https schemes.
6363

@@ -178,3 +178,7 @@ console.log(`Is "${username}" a valid username?`, isValidUrl(url));
178178
// Output: Is 'Johnny' a valid url? false
179179
180180
```
181+
182+
# License
183+
184+
This project is licensed under the **MIT License**.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "common-string-validator",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "",
55
"main": "index.js",
66
"scripts": {
@@ -16,7 +16,7 @@
1616
},
1717
"keywords": [],
1818
"author": "",
19-
"license": "ISC",
19+
"license": "MIT",
2020
"type": "module",
2121
"bugs": {
2222
"url": "https://github.com/arvid-e/common-string-validator/issues"

0 commit comments

Comments
 (0)