New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@currency-one/validators

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@currency-one/validators

Typescript collection of validators and regexp patterns

  • 1.1.26
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Validators

npm version License

Typescript collection of validators and regexp patterns

Installation

To install run:

npm i @currency-one/validators

or

yarn add @currency-one/validators

Basic usage with React and build systems (webpack, parcel etc.):

import { isNotEmptyStringValidator, isAccountNumberPattern } from '@currency-one/validators'

export const notEmptyValidator = (value) => {
  return !isNotEmptyStringValidator(value) ? 'This field cant be empty' : ''
}

export const accountNumberPattern = (value) => {
  return !isAccountNumberPattern(value) ? 'This field can contain only: letters, numbers and space' : ''
}

Documentation

See documentation for more details

Keywords

FAQs

Package last updated on 20 Aug 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc