
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@sctg/aga8-js
Advanced tools
High-performance WebAssembly implementation of the GERG-2008 equation of state and AGA8 methods for natural gas properties calculations. This package provides JavaScript/TypeScript bindings to the industry-standard algorithms for precise gas property calculations.
If you appreciate my work, please consider giving it a star! 🤩
Three Calculation Methods:
Complete Gas Support:
Technical Excellence:
Try it now at Lasersmart AGA8!
View the demo source code in our Vue.js implementation.
Try it now at Lasersmart Sonic Nozzle!
npm install @sctg/aga8-js
import { AGA8wasm, type GasMixture } from '@sctg/aga8-js';
// Initialize AGA8 module
const AGA8 = await AGA8wasm();
AGA8.SetupGERG();
// Define gas mixture (94% methane, 5% CO2, 1% helium)
const mixture: GasMixture = {
methane: 0.94,
nitrogen: 0,
carbon_dioxide: 0.05,
ethane: 0,
propane: 0,
isobutane: 0,
n_butane: 0,
isopentane: 0,
n_pentane: 0,
n_hexane: 0,
n_heptane: 0,
n_octane: 0,
n_nonane: 0,
n_decane: 0,
hydrogen: 0,
oxygen: 0,
carbon_monoxide: 0,
water: 0,
hydrogen_sulfide: 0,
helium: 0.01,
argon: 0
}
// Calculate properties
const molarMass = AGA8.MolarMassGERG(mixture);
const { D: density } = AGA8.DensityGERG(0, 400, 50000, mixture);
const properties = AGA8.PropertiesGERG(400, density, mixture);
console.log('Results:', {
molarMass: `${molarMass.toFixed(4)} g/mol`,
density: `${density.toFixed(4)} mol/L`,
compressibility: properties.Z.toFixed(6),
soundSpeed: `${properties.W.toFixed(2)} m/s`
});
# Emscripten SDK installation
# Clone repository
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
# Download and install the 4.0.1 SDK
./emsdk install 4.0.1
./emsdk activate 4.0.1
source ./emsdk_env.sh
# WebAssembly module build
# Clone repository
git clone https://github.com/sctg-development/aga8-js.git
cd aga8-js
# Install dependencies
npm install
# Build WebAssembly module
npm run build
# Run tests
npm test
We welcome contributions!
FAQs
WebAssembly bindings for AGA8 gas properties calculation
We found that @sctg/aga8-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.