Leverege Platform

Leverege Platform

  • Overview
  • JSDocs
  • REST API
  • Help

›Utilities

Platform Overview

  • Overview
  • Architecture
  • Core Concepts

Guides

  • Platform Setup
  • Building a Project
  • API UI

Services

  • API Server
  • Message Processor
  • Transponder
  • Reason
  • Scheduler
  • Messenger
  • Emailer
  • Rest Server
  • DB Curator

API

  • API
  • Interface
  • Project
  • System
  • Device
  • Blueprint
  • Collection
  • Child
  • History
  • Scenario
  • Script
  • Template
  • Timer
  • User
  • Users

Server Libraries

  • Log
  • Messages
  • Message Queue
  • Cache
  • Lock
  • Limit
  • Cluster Manager
  • Error
  • Exit

Utilities

  • Promise
  • Data Store
  • Factory
  • Path
  • Reasoner
  • Object Util
  • Array Util
  • String Util
  • Base62 Util
  • Value Cache
  • Validator
  • Lol

UI

  • API Redux
  • UI Builder
  • UI Elements
  • UI Redux
  • UI Mapbox Elements
  • UI Active Theme
  • UI Color Elements
  • UI Linear View Elements

Validator

A set of useful validators and key validator, to validate user input data.

Install

npm install --save @leverege/validator

Usage

const { Validator } = require( '@leverege/validator' );

Validator.isEmail( str ); // true or false
Validator.isPhone( str ); // true or false

keyValidator

There is only the isAlphaNumeric method on keyValidator which takes in a key board event and verifies that the character is alphaNumeric

Validator

Validator contains 3 methods. isEmail verifies that the value provided to it is an email. isPhone verifies that the value provided to it is a phone number. optional transforms a validator to allow empty or null values.

← Value CacheLol →
  • Install
  • Usage
    • keyValidator
    • Validator
Leverege Platform
Docs
Overview
Connect
FacebookLinkedInTwitter
Facebook Open Source