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

assertrc

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assertrc

nanoTest assert collection.

Source
npmnpm
Version
1.0.4-rc2
Version published
Weekly downloads
54
217.65%
Maintainers
1
Weekly downloads
 
Created
Source

assertrc (assert real challange)

The assertrc is an alternative shorthanded assert collection.

##init


const assertManager = new (require('./index.js')).base();

simple test


assertManager.check(
    '1', // value
    `===`, // rule
    '1' // sample
);

simple test upload


assertManager.tests({
    'id':'value',
    'id2':'value2'
});


supported operators

tacDescription
==Equal
eqEqual
eEqual
equalEqual
equaleEqual
!==Not equal
neqNot equal
neNot equal
notequalNot equal
notequaleNot equal
===Equal with type
eqtEqual with type
etEqual with type
qtEqual with type
equaltypeEqual with type
equaletypeEqual with type
!===Not equal with type
neqtNot equal with type
netNot equal with type
nqtNot equal with type
notequaltypeNot equal with type
notequaletypeNot equal with type
j==Deep Equal
jeqDeep Equal
jeDeep Equal
jsonequalDeep Equal
jsonequaleDeep Equal
==jDeep Equal
eqjDeep Equal
ejDeep Equal
equaljsonDeep Equal
equalejsonDeep Equal
>Greater
greaterGreater
moreGreater
higherGreater
biggerGreater
bigerGreater
largerGreater
<Less
lessLess
lowerLess
smallerLess
smalerLess
lengthLength
v==Value equal
veqValue equal
veValue equal
valueequalValue equal
valueequaleValue equal
v!==Value not equal
vneqValue not equal
vneValue not equal
valuenotequalValue not equal
valuenotequaleValue not equal
v===Value equal with type
veqtValue equal with type
vetValue equal with type
vqtValue equal with type
valueequaltypeValue equal with type
valueequaletypeValue not equal with type
v!===Value not equal with type
vneqtValue not equal with type
vnetValue not equal with type
vnqtValue not equal with type
valuenotequaltypeValue not equal with type
valuenotequaletypeValue not equal with type
vj==Value deep equal
vjeqValue deep equal
vjeValue deep equal
valuejsonequalValue deep equal
valuejsonequaleValue deep equal
v==jValue deep equal
veqjValue deep equal
vejValue deep equal
valueequaljsonValue deep equal
valueequalejsonValue deep equal

FAQs

Package last updated on 09 Feb 2021

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