
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@uoctamika/libraryjs
Advanced tools
A lightweight JavaScript & TypeScript utility library - just import and use. No configuration needed, functions are ready to use
[!IMPORTANT] We're moving into codeberg, also my project for "uoctamika" is moving in here to, i still used github for contributors. visit our repository
A lightweight JavaScript and TypeScript utility library - just import and use. No configuration required.
LibraryJS provides many built-in utility functions for common development tasks. If you need additional functionality, feel free to open an issue or submit a feature request.
Requirements
Install
$ npm install @uoctamika/libraryjs
Or install a specific version:
$ npm install @uoctamika/libraryjs@latest
or
$ npm install @uoctamika/libraryjs@1.0.0
For the best experience, please read the documentation before using this library.
If you come from a high-level development background, some parts of the API may feel unusual at first. However, if you have experience with C or C++, many design choices should feel familiar.
stdio - standard input output, provide a function for I/O things
NAME
stdio.printf — formatted output function.
import { stdio } from '@uoctamika/libraryjs'; const { stdio } = require('@uoctamika/libraryjs');
stdio.printf(format: string, ...args: any[]): void;
DESCRIPTION
The "printf()" function writes formatted output to "stdout" (standard output).
The format string consists of ordinary characters and conversion specifiers. Ordinary characters are copied directly to the output stream, while conversion specifiers begin with "%" and are replaced with formatted argument values.
Supported conversion specifiers:
| Specifier | Description | Example Input | Output |
|---|---|---|---|
%s | String value | "world" | "world" |
%d | Decimal integer | 42 | "42" |
%i | Integer (parsed from input) | "42px" | "42" |
%f | Floating-point number (6 decimal places) | 3.14159 | "3.141590" |
%c | Character (first character of string) | "ABC" | "A" |
%o | Object (default string representation) | {a:1} | "[object Object]" |
%O | Object (full inspection, unlimited depth) | {a:{b:2}} | "{ a: { b: 2 } }" |
%x | Hexadecimal (lowercase) | 255 | "ff" |
%X | Hexadecimal (uppercase) | 255 | "FF" |
%b | Binary | 5 | "101" |
%j | JSON stringify | {name:"Uoc"} | "{\"name\":\"Uoc\"}" |
%% | Literal percent sign | - | "%" |
Behavior for invalid arguments:
| Specifier | Invalid Input Behavior |
|---|---|
%d | Returns "NaN" when the value is not a valid integer |
%i | Returns "NaN" when no integer can be parsed from the input |
%f | Returns "NaN" when the value is not a valid number |
%c | Returns an empty string ("") when the input string is empty |
%o | Returns "[object Object]" for non-null values using default object conversion |
%O | Returns a string representation of the value, including nested structures |
%x | Returns "NaN" when the value cannot be converted to an integer |
%X | Returns "NaN" when the value cannot be converted to an integer |
%b | Returns "NaN" when the value cannot be converted to an integer |
%j | Returns "undefined" when JSON serialization fails or the value cannot be serialized |
This function returns number (int).
determine how much outputs is writing into stdout.
Unlike "console.log()", "printf()" does not automatically append a newline character. To print a new line, explicitly include "\n" in the format string.
stdio.printf("Hello %s!\n", "World");
stdio.printf("Age: %d\n", 18);
stdio.printf("PI: %f\n", 3.14159);
stdio.printf("Grade: %c\n", "A");
Contributions are welcome.
Before contributing, please read the following documents:
We appreciate all bug reports, feature requests, documentation improvements, and pull requests.
FAQs
A lightweight JavaScript & TypeScript utility library - just import and use. No configuration needed, functions are ready to use
The npm package @uoctamika/libraryjs receives a total of 41 weekly downloads. As such, @uoctamika/libraryjs popularity was classified as not popular.
We found that @uoctamika/libraryjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.