
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
@robinpath/assert
Advanced tools
Testing assertions: equal, deepEqual, truthy, falsy, type checks, includes, matches, throws, and more
Testing assertions: equal, deepEqual, truthy, falsy, type checks, includes, matches, throws, and more
The assert module lets you:
All functions are callable directly from RobinPath scripts with a simple, consistent API.
npm install @robinpath/assert
No credentials needed — start using it right away:
assert.notEqual $a $b
| Function | Description |
|---|---|
assert.equal | Assert two values are strictly equal (===) |
assert.notEqual | Assert two values are not equal |
assert.deepEqual | Assert deep equality of two values |
assert.truthy | Assert value is truthy |
assert.falsy | Assert value is falsy |
assert.isNull | Assert value is null or undefined |
assert.isNotNull | Assert value is not null/undefined |
assert.isType | Assert typeof value matches expected type |
assert.includes | Assert array/string includes a value |
assert.matches | Assert string matches a regex pattern |
assert.throws | Assert that a function throws |
assert.lengthOf | Assert array/string has specific length |
assert.hasProperty | Assert object has a specific property |
assert.isAbove | Assert number is above threshold |
assert.isBelow | Assert number is below threshold |
assert.notEqual $a $b
assert.deepEqual $obj1 $obj2
assert.truthy $val
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/assert";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
assert.notEqual $a $b
`);
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
@robinpath/json — JSON module for complementary functionalityMIT
FAQs
Testing assertions: equal, deepEqual, truthy, falsy, type checks, includes, matches, throws, and more
The npm package @robinpath/assert receives a total of 23 weekly downloads. As such, @robinpath/assert popularity was classified as not popular.
We found that @robinpath/assert demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

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.

Security News
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.