Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@zthun/trilean

Latest version: v3.0.1

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: zthun
1 Stars
0 Forks
8 Versions
80 Downloads
TypeScript Repo language

Scan summary

@zthun/trilean was last scanned on 28 Nov 2026 at version 3.0.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest was published on 28 Nov 2026.
  • Findings: No rules fired in version 3.0.1.
  • Downloads: 80 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.0.1 LATEST 28 Nov 2026 No rules fired
3.0.0 14 Oct 2026 No rules fired
2.0.28 1 Oct 2026 No rules fired
2.0.27 24 Aug 2026 Not shown
2.0.26 22 Aug 2026 Not shown

No rules fired in 3.0.1

Findings

Findings for v3.0.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 3.0.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Trilean

Use @zthun/trilean to model three-state values, such as a checkbox that can be checked, unchecked, or indeterminate. The three values are true, false, and ZTrilean.Indeterminate, whose value is the string "indeterminate".

The package supports ES modules and CommonJS and includes TypeScript declarations. It has no runtime or peer dependencies.

Installation

# npm
npm install @zthun/trilean

# Yarn
yarn add @zthun/trilean

Usage

import { ZTrilean, type trilean } from "@zthun/trilean";

const checked: trilean = true;
const unchecked: trilean = false;
const indeterminate: trilean = ZTrilean.Indeterminate;

// Returns 'true'
ZTrilean.stringify(checked);
// Returns 'false'
ZTrilean.stringify(unchecked);
// Returns 'indeterminate'
ZTrilean.stringify(indeterminate);

// Returns true
ZTrilean.parse("true");
// Returns false
ZTrilean.parse("false");
// Returns ZTrilean.Indeterminate
ZTrilean.parse("indeterminate");
// Returns false
ZTrilean.parse(null);
// Returns the fallback value, true
ZTrilean.parse("not-a-trilean", true);

// Returns true
ZTrilean.is(true);
// Returns true
ZTrilean.is(false);
// Returns true
ZTrilean.is(ZTrilean.Indeterminate);
// Returns false
ZTrilean.is("string is not a trilean");
// Returns true and narrows the type to indeterminate
ZTrilean.isIndeterminate(ZTrilean.Indeterminate);

// Convert values to trilean types.
ZTrilean.convert(1); // true
ZTrilean.convert(0); // false
ZTrilean.convert("TRUE"); // true
ZTrilean.convert("A truthy value"); // false (the default fallback)
ZTrilean.convert("A truthy value", true); // true (the supplied fallback)
ZTrilean.convert(null, ZTrilean.Indeterminate); // ZTrilean.Indeterminate
ZTrilean.convert(ZTrilean.Indeterminate); // ZTrilean.Indeterminate

ZTrilean.parse accepts "true", "false", and "indeterminate" without regard to case. It does not trim whitespace. Unrecognized strings, null, and undefined return the supplied fallback, which defaults to false.

ZTrilean.convert preserves trilean values, parses strings with ZTrilean.parse, and returns the fallback for null or undefined. All other values are converted to booleans according to their truthiness.

ZTrilean.is and ZTrilean.isIndeterminate are TypeScript type guards. Use ZTrilean.is to check whether an unknown value is a trilean, and ZTrilean.isIndeterminate to check whether a trilean is indeterminate.

Exports

Export Kind Description
ZTrilean Class Provides the indeterminate value and static helpers.
trilean Type alias A boolean or the indeterminate value.
indeterminate Type alias The string literal "indeterminate".
ZIntrinsic Type alias A union of JavaScript type labels and the custom "trilean" label.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @zthun/trilean

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229