
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
An npm package that allows users to access mathematical formulas for criminological/criminalistic/public safety purposes.
This package contains mathematical formulas for users to quickly calculate outputs they need for criminological/criminalistic/public safety research purposes. This package is geared towards students studying these topics but anyone can use this package. There will simply be a learning curve if you are no used to using math in this way.
Contact me at my website if there is a formula you would like me to add to the module.
//Crime Rate Formula
let result = crimeRate(crimesReported, population);
console.log(result);
//Clearance Rate Formula
let result = clearanceRate(reportedCrimesCleared, crimesReported);
console.log(result);
// Arrest Rate Formula
let result = arrestRate(arrests, population);
console.log(result);
// Crime Trend Rate Formula
// This formula is also referred to as the Percent Change Formula
let result = crimeTrendRate(currentYear, previousYear);
console.log(result);
// Police Personnel Rate Formula
let result = policePersonnelRate(policePersonnel, population);
console.log(result);
// Kinetic Energy Formula
let result = kineticEnergy(bulletVelocity, bulletMass);
console.log(result);
// Pounds to Grains Conversion Formula
let result = poundsToGrains(pounds);
console.log(result);
// Grains to Pounds Conversion Formula
let result = grainsToPounds(grains);
console.log(result);
// Ounces to Grains Conversion Formula
let result = ouncesToGrains(ounces);
console.log(result);
// Grains to Ounces Conversion Formula
let result = grainsToOunces(grains);
console.log(result);
// Grams to Grains Conversion Formula
let result = gramsToGrains(grams);
console.log(result);
// Grains to Grams Conversion Formula
let result = grainsToGrams(grains);
console.log(result);
// Inches to Millimeters Conversion Formula
let result = inchesToMillimeters(inches);
console.log(result);
// Millimeters to Inches Conversion Formula
let result = millimetersToInches(millimeters);
console.log(result);
// BAC Formula (Widmark)
// for genderConstant, assign 0.73 for men and 0.66 for women
let result = bacLevel(ouncesAlcoholConsumed, bodyweightPounds, genderConstant, hoursSinceStartedDrinking);
console.log(result);
FAQs
An npm package that allows users to access mathematical formulas for criminological/criminalistic/public safety purposes.
We found that crimemath demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.