GitHub

Lopos

A powerful utility library for advanced conditional testing, flexible date handling, deep merging, and more.

JavaScript
Node.js
Utilities
TypeScript Ready

Why Choose Lopos?

Flexible Testing
Advanced conditional testing with multiple comparison types and custom validation options.
Smart Conditionals
Execute conditional logic without traditional if statements using lopif function.
Deep Operations
Deep merge, clone, and manipulate complex data structures with ease.
Type Safe
Robust type checking and validation for reliable JavaScript applications.

Core Functions

test()
Flexible testing for various comparison operations
Learn More
lopif()
Conditional execution without if statements
Learn More
deepMerge()
Deep merge multiple objects and arrays
Learn More
flexibleDate()
Parse and format dates with advanced options
Learn More
advancedThrottle()
Throttle functions with customizable controls
Learn More
deepClone()
Deep clone any value including complex types
Learn More

Quick Start

Installation & Usage

Install via npm:

npm install lopos

Import and use:

const { test, lopif, deepMerge } = require("lopos");

// Flexible testing
test("equals", 5, 5); // true
test("contains", "Hello World", "world", { ignoreCase: true }); // true

// Conditional execution without if statements
lopif(10 > 5, () => "Yes", () => "No"); // "Yes"