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

@yuhere/js-ieee754

v1.2.2

Published

Read/write IEEE754 floating point numbers from/to a Buffer or array-like object

Readme

@yuhere/js-ieee754

npm downloads npm coverage license TypeScript ESM

[!NOTE] This project is forked from feross/ieee754 v1.2.1. The main changes are: source rewritten in TypeScript, repackaged as ES Module with Vite + Vitest.

Read/write IEEE754 floating point numbers from/to a Buffer or array-like object.

Differences from upstream

| Aspect | Upstream | This fork | |--------|----------|-----------| | Module format | CommonJS | ES Module | | Source language | JavaScript | TypeScript | | Build tool | None | Vite 8 (preserveModules) | | Type declarations | Hand-written index.d.ts | Auto-generated from tsc | | Test framework | tape | Vitest 4 (Node) | | Test language | JavaScript | TypeScript | | Coverage | None | Istanbul (100%) |

Detailed changes

  1. ESM — exports.read/write → export function read/write, added "type": "module" and "exports" field to package.json
  2. TypeScript — converted src/index.js to src/index.ts with full type annotations, var → let/const
  3. Build — Vite with preserveModules compiles to lib/, tsc generates .d.ts and declaration maps
  4. Tests — switched from tape to Vitest with globals: true, Istanbul coverage at 100% (statements, branches, functions, lines)
  5. Dev tooling — removed mocha, airtap, standard, tape; added Vite + Vitest + TypeScript stack

install

npm install @yuhere/js-ieee754

methods

import { read, write } from '@yuhere/js-ieee754'

read(buffer, offset, isLE, mLen, nBytes)

Read an IEEE754 floating point number from a buffer.

write(buffer, value, offset, isLE, mLen, nBytes)

Write a floating point number into a buffer using IEEE754 format.

Arguments:

  • buffer — the buffer (Uint8Array)
  • offset — offset into the buffer
  • value — value to set (only for write)
  • isLE — is little endian?
  • mLen — mantissa length (float32: 23, float64: 52)
  • nBytes — number of bytes (float32: 4, float64: 8)

what is ieee754?

The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point computation. Read more.

license

BSD 3 Clause. Copyright (c) 2008, Fair Oaks Labs, Inc.