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

validation_useable

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validation_useable

Test Package!

latest
Source
npmnpm
Version
1.0.14
Version published
Maintainers
1
Created
Source

Validation Package

This package has been created for validate information that users enter in text field. If user entered information in text field not match with the regular expression that defined, will alert validate text under text field.

Usage

This package can use with Vuetify only. You must have vue project with vuetify installed.

First --> install package

# validation_useable is name of package to created.

npm i validation_useable

Second --> config your file.vue

# import your package

<script>
import Validation from "validation_useable/validation.js";

export default {

data: () => ({
  ...Validation
});
</script>

Third --> use function in rules property


<v-text-field
  v-model="editedItem.number"
  label="Number"
  outlined
  dense
  required
  :rules="[required('Number'), numberOnly()]"
></v-text-field>

** required and numberOnly is function to called from your package. You will see function required has 'Number',

this is the incoming parameter we defined in the function. But function numberOnly has no incoming parameters

because we don't define them in the function.

Keywords

validation

FAQs

Package last updated on 02 Sep 2020

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