https://github.com/jondotsoy/vapi.is
https://github.com/jondotsoy/vapi.is
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jondotsoy/vapi.is
- Owner: JonDotsoy
- License: mit
- Created: 2017-04-23T01:35:30.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-26T00:47:53.000Z (about 8 years ago)
- Last Synced: 2025-01-26T10:30:13.678Z (4 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vapi.is
Validation of type.
## API Supported
- `is`
- `isA`
- `isAn`
- `isAny`
- `isArray`
- `isFrozen`
- `isFunction`
- `isNumber`
- `isObject`
- `isSealed`
- `isString`## How to use
Install.
```shell
# With npm
npm install --save vapi.is# With yarn
yarn add vapi.is
```Import **vapi.is**.
```javascript
// Import all validations
import * as validations from 'vapi.is'
// A especific validation
import {isString} from 'vapi.is/isString'
// no recommended
import {isString} from 'vapi.is'
```