bootstrapvalidator5 1.0.0 β†’ 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # 🧩 Bootstrap Validator (Revived for Bootstrap 5)
2
+ # 🧩 Bootstrap Validator 5 (Revived for Bootstrap 5)
3
3
 
4
4
  > A modernized, fully working version of the original **BootstrapValidator.js**
5
5
  > (originally built for Bootstrap 3 by @nghuuphuoc), now updated and refactored
@@ -18,7 +18,7 @@ documentation and examples eventually disappeared.
18
18
  This repository brings it **back to life**, enhanced for **modern web projects**.
19
19
  It is a **plain-text, human-readable JavaScript version** that:
20
20
 
21
- - βœ… Works with **Bootstrap 5.3+**, **Bootstrap 4**, and **Bootstrap 3**
21
+ - βœ… Works with **Bootstrap 5.3+**
22
22
  - βœ… Keeps all the **original built-in validators** (25+ types)
23
23
  - βœ… Adds Bootstrap 5-style feedback classes (`.is-valid` / `.is-invalid`)
24
24
  - βœ… Retains legacy `.has-success` / `.has-error` for backward compatibility
@@ -62,7 +62,8 @@ It’s ideal for:
62
62
 
63
63
  This repository includes:
64
64
 
65
- - **bootstrapValidator.js** β†’ The main hybrid plugin
65
+ - **bootstrapValidator5.js** β†’ The main hybrid plugin
66
+ - **bootstrapValidator5.css** β†’ Styling
66
67
 
67
68
 
68
69
  ---
@@ -106,6 +107,35 @@ $('#loginForm').bootstrapValidator({
106
107
  </script>
107
108
  ```
108
109
 
110
+
111
+ ### NPM Installation
112
+ - ensure jQuery is loaded.
113
+
114
+ ```bash
115
+
116
+ npm install bootstrapvalidator5
117
+
118
+ ```
119
+
120
+ then in app.js
121
+ a) webpack / laravel-mix
122
+ ``` javascript
123
+
124
+ require('bootstrapvalidator5');
125
+
126
+ ````
127
+ and in app.css
128
+ ```javascript
129
+ @import 'bootstrapValidator5';
130
+ ```
131
+
132
+
133
+ b) Vite
134
+ ``` javascript
135
+
136
+ import 'bootstrapvalidator5';
137
+
138
+ ```
109
139
  ---
110
140
 
111
141
  🧾 License