https://github.com/uocdev/validatorjs
Simple validation type data with JavaScript
https://github.com/uocdev/validatorjs
Last synced: 10 months ago
JSON representation
Simple validation type data with JavaScript
- Host: GitHub
- URL: https://github.com/uocdev/validatorjs
- Owner: UocDev
- License: mit
- Created: 2025-07-10T09:24:31.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-07-10T09:47:25.000Z (11 months ago)
- Last Synced: 2025-07-10T17:42:25.805Z (11 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# validatorJS
The simple for people who want create validation type data for your application (small / simple)
## Get Started
Clone this repository for your local.
```bash
git clone https://github.com/UocDev/validatorJS.git [YOUR_NAME_DIRECTORY]
```
Install some Package.
```bash
npm init -y
```
```bash
npm install chalk
```
### Example
```js
const { isString, isNumber, isBoolean, isArray } = require('./validator');
isString('Hello, world!'); // ✅ Green
isString(123); // ❌ Red
isNumber(42); // ✅ Green
isNumber('42'); // ❌ Red
isBoolean(true); // ✅ Green
isBoolean('true'); // ❌ Red
isArray([1, 2, 3]); // ✅ Green
isArray('not an array'); // ❌ Red
```
Goodluck developer for your future projects!