New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

yup-schema

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yup-schema

Easily define your yup rules using arrays instead of yup object

latest
Source
npmnpm
Version
1.0.0-alpha.2
Version published
Weekly downloads
183
-14.49%
Maintainers
1
Weekly downloads
 
Created
Source

yup-schema

Developed by Flipbyte

This project was cloned from the Flipbyte project because that project was no longer being patched and maintained.

npm package license

yup-schema is a simple library that allows you to write yup rules using arrays.

Installation

npm i @flipbyte/yup-schema

Usage

The library considers each yup method to be an array within a main array, with method name as the first value, followed by the arguments (if any).

Example

yup.object().shape({
    name: yup.string().required(),
    age: yup.number().min(18)
})

would become

[['object'], ['shape', {
    name: [['string'], ['required']],
    age: [['number'], ['min', 18]]
}]]

License

The MIT License (MIT)

Keywords

yup-schema

FAQs

Package last updated on 05 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts