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

engineering-tables

v1.2.0

Published

Steam tables (IAPWS-IF97), Student's t and chi-square critical values, the normal CDF and engineering unit conversion. Zero dependencies, verified against published values.

Readme

engineering-tables

Steam tables, statistical tables and unit conversion for engineering, in plain JavaScript with zero dependencies. Every function is checked by tests against published reference values.

  • Steam and water properties from IAPWS-IF97: saturation pressure and temperature, and specific volume, enthalpy and entropy of liquid and vapour. Matches the verification values in the IAPWS-IF97 release to 8 significant figures.
  • Viscosity of water and steam from IAPWS R12-08 (2008), dynamic and kinematic, matching every verification value in the release's Table 4.
  • Student's t and chi-square distributions: CDFs and critical values.
  • Standard normal CDF, Φ(z).
  • Unit conversion for pressure, energy, power, force and torque, from exact definitions.

The same code computes the printable tables on taueng.com: the saturated steam tables, the t-table, the chi-square table and the Z-table, the superheated steam tables, and an interactive steam calculator.

Install

npm install engineering-tables

An ES module for Node 18+ and modern browsers, with TypeScript types included.

Use

import { saturated, tsat, tCritical, chi2Critical, phi, convert } from 'engineering-tables'

// Saturated water and steam at 100 °C (T in kelvin, p in MPa)
const s = saturated(373.15)
s.p * 1000   // 101.418 kPa
s.hfg        // 2256.5 kJ/kg, enthalpy of vaporisation
s.vg         // 1.6719 m³/kg

tsat(1) - 273.15                      // 179.89 °C, boiling point at 1 MPa
tCritical(0.025, 10)                  // 2.228, two-sided 95% with 10 degrees of freedom
chi2Critical(0.05, 10)                // 18.307
phi(1.96)                             // 0.9750
convert('pressure', 30, 'psi', 'bar') // 2.0684

Functions

| Function | Returns | |---|---| | saturated(T) | { T, p, vf, vg, hf, hg, hfg, sf, sg, sfg } at T in K (273.15 to 623.15 K) | | psat(T), tsat(p) | Saturation pressure (MPa) at T (K), saturation temperature (K) at p (MPa) | | region1(T, p), region2(T, p) | { v, h, s } for compressed liquid and for vapour | | stateTP(T, p) | Phase (liquid, vapour, or critical/range when not covered) with v, h, s at T in K and p in MPa | | viscosity(T, p) | { phase, rho, mu, nu }: dynamic viscosity (Pa·s) and kinematic viscosity (m²/s) of water or steam, IAPWS R12-08 with IF97 density | | viscosityTRho(T, rho) | Dynamic viscosity (Pa·s) from T in K and density in kg/m³ | | tCdf(t, df), tCritical(alpha, df) | Student's t CDF, and t with P(T > t) = alpha | | chi2Cdf(x, df), chi2Critical(alpha, df) | Chi-square CDF, and x with P(X > x) = alpha | | phi(z), erf(x) | Standard normal CDF and the error function | | convert(category, value, from, to) | Unit conversion; UNITS lists the categories and units |

Arguments outside the stated ranges throw a RangeError rather than return a number that looks right and is not.

Units: m³/kg, kJ/kg and kJ/(kg·K), with the IAPWS reference state (internal energy and entropy of saturated liquid are zero at the triple point).

Verified

npm test runs the checks: the IAPWS-IF97 verification tables for regions 1, 2 and 4, published t and chi-square critical values, the standard normal table and exact unit definitions.

Data

The tables computed with this library are published as a citable CSV dataset on Zenodo: doi.org/10.5281/zenodo.23936027.

Cite

Mashiah, D. (2026). Engineering reference tables: saturated steam (IAPWS-IF97), Student's t, chi-square and standard normal values, and unit conversion factors. Zenodo. https://doi.org/10.5281/zenodo.23936027

To cite the software itself: Mashiah, D. (2026). engineering-tables. Zenodo. https://doi.org/10.5281/zenodo.23939106

Author

David Mashiah, mechanical engineering student at Tel Aviv University. Built for taueng.com, free study tools for engineering students. MIT licensed.