@nib/validation-methods

1.2.1 • Public • Published

validation-methods

Build Status

Various methods for validating objects

Installation

$ npm i @nib/validation-methods

API

var methods = require('validation-methods');
methods.required('foo'); // true
methods.equals(1,1); // true;
methods.email('foo@mail.com'); // true
methods.string(1); // false;
methods.number('string'); // false

Validating array contents

var validateSubsetOf = methods.isSubsetOf([1,2,3]);
validateSubsetOf([1]); // true
validateSubsetOf([1,3]); // true
validateSubsetOf([1,5]); // false

License

MIT

Package Sidebar

Install

npm i @nib/validation-methods

Weekly Downloads

2

Version

1.2.1

License

MIT

Last publish

Collaborators

  • nib-admin
  • nnattawat
  • s.bista
  • aadams-rasa
  • rgstephens
  • abilioh
  • sdarshy
  • smdabrar
  • anylyne
  • pmv-npm
  • aiswaryarajendran
  • kemila-nib
  • dermotosullivannib
  • xunsavior
  • chaulagainajeet
  • daron.robinson
  • davetapsonnib
  • zainab.saif
  • indira.ramachandra
  • williamgonzaleznib
  • shane-w
  • amir.rudd
  • anandmampuzhakal
  • vaanim
  • sarahyapnib
  • varindernib
  • lguan
  • nib-daniel
  • paritoshdhebar_endava
  • fe_nib
  • l.lourenco
  • nicknguyennib2
  • sam-jacobson
  • sanjaydholakiya.nibtravel
  • vinualwisnib
  • sobitha
  • tom-endava
  • satkaur
  • dean-nib
  • brettalcorn
  • steevtee
  • wstolp
  • daniel-nib
  • sachin.patil79
  • phil.a.hawkins
  • csfrank-nib
  • davidvnib
  • ts1654
  • artem.shkumat
  • jezz-jon
  • nib-vish
  • anandmenon
  • jbayer
  • rasberghout
  • tkemp
  • csol94
  • nmaffioldnib
  • zi_choong
  • kim-mckenna-endava
  • xhua026
  • reallandal
  • brodee
  • dlegaspi-nib
  • nadeeth-nib1
  • digio-shanefitzgerald
  • darcymerrickmudbath
  • saranya-nibtravel
  • trentontws
  • krut
  • eddylj
  • georgia-batson
  • adamgonlag
  • paul-neville-thompson
  • terencesunendava
  • nathanpiper-nib
  • sylvia.zh
  • dluong.mud
  • karlb_nz
  • neon-inkblast
  • bencoll
  • amelialuwia
  • cooldesignluke
  • julie.li
  • connorpmcbride
  • tarantoj
  • samreedy
  • caleb.faith
  • shirleyshao
  • kieranjogrady
  • samjwillis-nib
  • nathan.ford-nib
  • sumo_nib
  • domcorso-nib
  • jmatas
  • mthamyeeznib
  • swaff-y
  • nathananstess.nib
  • parisa.heyd
  • stephen.wong
  • thomasc42
  • sameer-e-digio
  • fiona.wang
  • elias.tran.nib
  • pkernaghan
  • ruilunli
  • alankirknibtravel
  • mgw114
  • gaurijadhav
  • sannat-digar
  • bradley.williams
  • sheren
  • ash-tulett-nib
  • damodaran
  • joshgermon-nib
  • joshua.coleiro
  • juliexxvi
  • john.hartmann.nib
  • johnpaulvaughan
  • georgia.batson
  • blakehattingh
  • chris.close.nib
  • dsmitham
  • c.rhind
  • tristancampbellmb
  • danieltran-nib
  • dguilbert
  • tejaswikota
  • tjodzio-nib
  • mitchellharrold
  • billthomas-nib
  • harshahr1994
  • dimi7ri
  • akash.prakash
  • vivien_clifford_nib
  • pallavi.barna
  • bendharvey
  • s.hossain
  • brad.turner
  • scottwalkerau
  • johanjarvi
  • msikkema
  • alunarzewski
  • jnwest
  • mleontieff
  • amy.tait.nib
  • aschofield-nib
  • ian.darroch
  • syed.husain
  • lauriejones
  • cmayson
  • ken-ky-wong
  • stribs
  • wng-services
  • eastwood
  • mattbourke
  • narcher
  • tmcclenahan
  • nib-nz-build
  • tgoldthorpe-nib
  • nib-build-agent
  • jackmennienib
  • dariasu
  • bennettsolnet
  • airfan
  • rovacsek
  • gnguyennib
  • tom.mok
  • tbrown-nib
  • vicvinegar
  • oshan.kottege
  • xiaoxinghu
  • rbowen006
  • seanw.nib
  • anishmat27
  • sean0x42
  • zander-mudbath
  • sbeliak-nib
  • c.lassen
  • dmitrymatveev
  • vaishalibhakhar
  • alejop-mudbath
  • r3gm1
  • maraza1721
  • d-martin-nib
  • apnib
  • siyengar94