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 🙏

© 2024 – Pkg Stats / Ryan Hefner

crimemath

v1.0.18

Published

An npm package that allows users to access mathematical formulas for criminological/criminalistic/public safety purposes.

Downloads

10

Readme

CRIMEMATH NPM Module

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.

GENERAL CRIMINOLOGY FORMULAS

//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);

BALLISTICS FORMULAS

// 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);

FORENSIC TOXICOLOGY FORMULAS

// 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);