npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ttaarrnn/feruliym

v1.2.0

Published

The logical, mathematical manager and more! It makes the code be cleaner.

Readme

Feruliym Project

Github Link 🔗

version 1.2.0

The logical, Mathematical manager and more! It makes the code be cleaner. 👍 👍

Its pronunciation is like fɜː ruː liː jᵊm, yeah, it's so weird.

Installation

By using NPM

npm install @ttaarrnn/feruliym

If you use another installer, correct the spelling of the name @ttaarrnn/feruliym.

Examples

normal TS :

if ((1 > 2.33 && 4 === 5) || (false && !true)) {
  console.log("Hello, world!");
}

TS with Feruliym F function - logical & comparison manager :

import { F } from "@ttaarrnn/feruliym";

R(`[@1 > @2, @3 = @4] / [@5, -@6]`);

if (F()(1, 2.33, 4, 5, false, true)) {
  console.log("Hello, world!");
}

Or using real value :

import { F } from "@ttaarrnn/feruliym";

R(`[1 > 2.33, 4 = 5] / [false, -true]`);

if (F()()) {
  console.log("Hello, world!");
}

Update 1.2.0

  • Modified parameter indexes, they must be after @ sign, Ex. @1.

  • Add new function : A() - Array Manager.

A( ) Function

Abilities & rules syntax :

  1. Number Range. Syntax: "StartN...EndN" Ex. "2...8" the result will be [2, 3, 4, 5, 6, 7, 8].

  2. Array Combining, unlike concat method, it derectly combines the arrays. Syntax: "Array + Array + ..." Ex. "['a', 'b', 'c', [1, 2, 3]] + [4,5,6]" the result will be ['a', 'b', 'c', [1, 2, 3], 4, 5, 6]. It uses + (plus) sign and the amount of arrays does not matter.

A( ) Function will have more ability in the next 1.2.x updates.

Usage

Feruliym functions have 2 parts when calling them.

  1. Rules The string that contains special signs and parameter indexes.

    • Special Signs: They're specially in each functions
    • Parameter Indexes: They're numbers for replacements by parameters from the second part
  2. Parameters They're data to replace parameter indexes in rules part

Example

// In M function - Mathematical manager

let x = 10;
console.log(M(`@1% * abs(@2 - @3)`)(x, 5, 5 - x));

Explanation

The rules part is "@1% * abs(@2 - @3)".

In M function, % (percentage) sign will be replaced by "/100" and abs will be replaced by "Math.abs".

So, Feruliym will interpret the rules part as "1/100 * Math.abs(2 - 3)".

The parameters part is x, 5, 5 - x, while x is variable containing the value of 10, so parameter part after replace variable with real value and calculation will be 10, 5, -5.

Then, the function will replace index numbers with parameters in order.

The final result will be "10/100 * Math.abs(5 - -5)", and the function will interpret the result as 1.

All Functions

| Name | Description | Example | | ---- | ------------------------------------------------------------------------- | ---------------------------------------------------- | | F | Use for logically management and comparison | F(`({1}, {2}) / ({3}; {4})`)(true, true, "6", "4") | | M | Use for Mathematically management, including Math functions and constants | M(`√(2) + pi`)() |

All replacements

| In rules | Replace by | Function | | -------- | ------------ | ------------ | | @ | Empty Str | M/F function | | & | Empty Str | M/F function | | _ | Empty Str | M function | | | | | = | === | F function | | ; | !== | F function | | ≠ | !== | F function | | < | <= | F function | | > | >= | F function | | </= | <= | F function | | >/= | >= | F function | | , | && | F function | | / | || | F function | | - | ! | F function | | ~ | ^ | F function | | | | | pi | Math.PI | M function | | e | Math.E | M function | | ln2 | Math.LN2 | M function | | ln10 | Math.LN10 | M function | | log2e | Math.LOG2E | M function | | log10e | Math.LOG10E | M function | | root2 | Math.SQRT2 | M function | | root1/2 | Math.SQRT1_2 | M function | | abs | Math.abs | M function | | floor | Math.floor | M function | | ceil | Math.ceil | M function | | round | Math.round | M function | | trunc | Math.trunc | M function | | exp | Math.exp | M function | | ln | Math.log | M function | | log | Math.log10 | M function | | log2 | Math.log2 | M function | | pow | Math.pow | M function | | root | Math.sqrt | M function | | √ | Math.sqrt | M function | | cuberoot | Math.cbrt | M function | | sin | Math.sin | M function | | cos | Math.cos | M function | | tan | Math.tan | M function | | asin | Math.asin | M function | | acos | Math.acos | M function | | atan | Math.atan | M function | | atan2 | Math.atan2 | M function | | rand | Math.random | M function | | max | Math.max | M function | | min | Math.min | M function | | sign | Math.sign | M function | | hypot | Math.hypot | M function | | [ | ( | M/A function | | ] | ) | M/A function | | { | ( | M/A function | | } | ) | M/A function | | ⋅ | * | M function | | × | * | M function | | ÷ | / | M function | | % | /100 | M function | | mod | % | M function |

Creator

Somchai Jaidee, Alias

Hello 👋, I'm 11 years old and I'm in grade 6.

Link(s)