New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

valyd

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

valyd

A dead simple package for validating various types of strings.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

valyd

A dead simple library for validating various types of strings. Ships with Typescript bindings.

API

  • valyd.json(str:string) => boolean: Returns true if the provided string can be successfully JSON parsed.
  • valyd.email(str:string) => boolean: Returns true if the provided string is a valid email, as determined by isEmail in its simplest configuration.
  • valyd.url(str:string) => boolean: Returns true if the provided string is a valid URL, as determined by the Regex from the top-rated Stack Overflow post.

Keywords

validator

FAQs

Package last updated on 30 Apr 2019

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