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.

latest
Source
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source

assertrc (assert real challange)

The assertrc is an alternative shorthanded assert collection.

##init


const assertManager = new (require('assertrc')).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
istanceofInstance of
istanceInstance of
isInstance of
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
r==Result Equal
reqResult Equal
reResult Equal
resultequalResult Equal
resultequaleResult Equal
r!==Result Not Equal
rneqResult Not Equal
rneResult Not Equal
resultnotequalResult Not Equal
resultnotequaleResult Not Equal
r===Result Equal Type
reqtResult Equal Type
retResult Equal Type
rqtResult Equal Type
resultequaltypeResult Equal Type
resultequaletypeResult Equal Type
r!===Result Not Equal Type
rneqtResult Not Equal Type
rnetResult Not Equal Type
rnqtResult Not Equal Type
resultnotequaltypeResult Not Equal Type
resultnotequaletypeResult Not Equal Type
rj==Result Equal Json
rjeqResult Equal Json
rjeResult Equal Json
resultjsonequalResult Equal Json
resultjsonequaleResult Equal Json
r==jResult Equal Json
reqjResult Equal Json
rejResult Equal Json
resultequaljsonResult Equal Json
resultequalejsonResult Equal Json

FAQs

Package last updated on 09 Apr 2022

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