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

@hulle107/libslm-binary

v1.0.7

Published

Low-level binary data manipulation library with typed primitives and bitwise operations in TypeScript.

Readme

Libslm (Life is boring so let's make) Binary

Version License

📚 Indexing

🧪 Introduction

Welcome to Libslm Binary — a chaotic collection of experiments, half-baked ideas, and bursts of inspiration. This isn't a polished, production-ready framework. It's a playground for concepts that may or may not evolve into something meaningful.

Due to its experimental nature, stability is not guaranteed. Features may change, vanish, or break at any time. If you're here for reliability, you might want to look elsewhere. But if you're here out of curiosity, exploration, or sheer madness — welcome aboard.

⚠️ Use at your own risk. Enjoy the ride.

🧩 Binary

This library provides low-level, primitive types for working with binary data. These are designed for precise bit and byte manipulation, with a focus on fixed-width representations.

ℹ️ The core challenge in this library is that all binary values are, fundamentally, just numbers. So after performing arithmetic or bitwise operations, values tend to default back to raw numbers, losing their typed wrapper.

🔄 Changes v1.0.7

  • Removed the use of classes.
  • Removed dword support (for now) due to the complexity of enforcing size constraints.

✨ Features

  • Binary Encapsulation –Represent numbers as fixed-width binary sequences.
  • Arithmetic & Bitwise Operations – Perform operations while maintaining binary structure.
  • Signed Value Conversion – Supports two’s complement interpretation.

🧱 Primitive Types

  • bit – A single binary digit (0 or 1).
  • nibble – A 4-bit unsigned integer.
  • byte – A 8-bit unsigned integer.
  • word – A 16-bit unsigned integer.

💡 Usage Example

import {byte, byteArray} from 'libslm-binary';

let first: byte = byte(0x41);
console.info(byte.toArray(first));        // [0, 1, 0, 0, 0, 0, 0, 1]
console.info(byte.toString(first));       // 1000001
console.info(byte.toBinary(first));       // 01000001
console.info(byte.toHexadecimal(first));  // 41
console.info(byte.size);                  // 8
console.info(byte.mask);                  // 255

let second: byte = byte(255);
console.info(byte.toSigned(second));      // -127
console.info(byte.valueOf(second));       // 255

let array: byteArray = [1, 0, 0, 1, 1, 0, 0, 0];
let third: byte = byte.fromArray(array);
console.info(third);                      // 152

🛣️ Roadmap

| Status | Feature | |:------:|:--------| | ✅ | Basic implementation | | ✅ | Basic arithmetic & bitwise operations | | ✅ | Basic documentation | | ✅ | Conversion between arrays and types | | ✅ | Conversion to binary/hex strings | | ✅ | Signed value support | | ✅ | Performance improvements | | 🔲 | Advanced documentation | | 🔲 | Floating-point support |

📝 Notes

These types serve as foundational tools for binary manipulation. Given the library's experimental status, expect things to evolve — or get scrapped entirely.