
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
mpn-lookup
Advanced tools
A TypeScript library for Most Probable Number (MPN) lookups in microbiological testing, supporting QuantiTray, QuantiTray2000, and Legionella formats
A simple tool for when you don't want to use, or simply can't find, the various reference PDF's for the QuantiTray system.
Built with:
For the work I used the following tools:
npm install mpn-lookup
# or
pnpm add mpn-lookup
# or
yarn add mpn-lookup
import { getQtMpn, getQt2KMpn, getQtLegio } from 'mpn-lookup';
// Standard QuantiTray lookup (0-51 positive wells)
const result = getQtMpn(10);
if (result) {
const [lower, estimate, upper] = result;
console.log(`MPN: ${estimate} (${lower} - ${upper})`);
// Output: MPN: 5.3 (2.3 - 12.3)
}
// QuantiTray 2000 lookup (large pos: 0-49, small pos: 0-48)
const result2k = getQt2KMpn(10, 25);
if (result2k) {
const [lower, estimate, upper] = result2k;
console.log(`2K MPN: ${estimate} (${lower} - ${upper})`);
}
// Legionella lookup (large pos: 0-6, small pos: 0-90)
const legioResult = getQtLegio(3, 45);
if (legioResult !== undefined) {
console.log(`Legionella MPN: ${legioResult}`);
}
getQtMpn(positiveWells: number): MpnResult | undefined
Returns MPN values for standard QuantiTray testing.
[lowerBound, estimate, upperBound]
tuple or undefined
for invalid inputsgetQt2KMpn(largePos: number, smallPos: number): MpnResult | undefined
Returns MPN values for QuantiTray 2000 high-throughput testing.
[lowerBound, estimate, upperBound]
tuple or undefined
for invalid inputsgetQtLegio(largePos: number, smallPos: number): string | number | undefined
Returns MPN values for Legionella testing.
undefined
for invalid inputs# Clone and setup
git clone https://github.com/jonathan-gartland/mpn-lookup.git
cd mpn-lookup
pnpm install
# Run tests
pnpm test
# Build library
pnpm build
# Run all checks (lint, type-check, test)
pnpm run check-all
https://github.com/jonathan-gartland/mpn-lookup-nextjs
https://github.com/jonathan-gartland/MpnLookupRN
FAQs
A TypeScript library for Most Probable Number (MPN) lookups in microbiological testing, supporting QuantiTray, QuantiTray2000, and Legionella formats
The npm package mpn-lookup receives a total of 22 weekly downloads. As such, mpn-lookup popularity was classified as not popular.
We found that mpn-lookup 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.