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

ninja-unit-conversion

v0.1.1

Published

Agricultural unit conversions

Readme

ninja-unit-conversion

This is a small utility to convert units instead of having to bake it in everywhere you might need it.

Usage:

const unitConverter = require('ninja-unit-conversion');

let acres = 50;
let squareMeters = unitConverter.acresToSquareMeters(acres);

console.log(squareMeters);

// 202343

Methods:

_28uanTotalWeight

Converts input in gallons to total weight in lbs of 28% Nitrogen Content Fertilizer. 

Usage:

let totalWeight = unitConverter._28uanTotalWeight(gallons);

_32uanTotalWeight

Converts input in gallons to total weight in lbs of 32% Nitrogen Content Fertilizer. 

Usage:

let totalWeight = unitConverter._32uanTotalWeight(gallons);

_21ammoniumThioSulfateTotalWeight

Converts input in gallons to total weight in lbs of 21% Ammonium Thio Sulfate Fertilizer. 

Usage:

let totalWeight = unitConverter._21ammoniumThioSulfateTotalWeight(gallons);

acresToSquareMeters

Converts input in acres to square meters.

Usage:

let squareMeters = unitConverter.acresToSquareMeters(acres);

acresToHectares

Converts input in acres to hectares.

Usage:

let hectares = unitConverter.acresToHectares(acres);

hectaresToAcres

Converts input in hectares to acres.

Usage:

let acres = unitConverter.hectaresToAcres(hectares);

hectaresToSquareMeters

Converts input in hectares to square meters.

Usage:

let squareMeters = unitConverter.hectaresToSquareMeters(hectares);

poundsPerAcreToKilogramsPerHectare

Converts input in pounds per acre to kilos per hectare.

Usage:

let kilogramsPerHectare = unitConverter.poundsPerAcreToKilogramsPerHectare(poundsPerAcre);

kilogramsPerHectarToPoundsPerAcre

Converts input in kilos per hectare to pounds per acre.

Usage:

let poundsPerAcre = unitConverter.kilogramsPerHectareToPoundsPerAcre(kilogramsPerHectare);

pricePerBushelToPricePerPound

Converts input in price per bushel to price per pound.

Usage:

let pricePerPound = unitConverter.pricePerBushelToPricePerPound(pricePerBushel, bushelCropConversionFactor);

pricePerPoundToPricePerBushel

Converts input in price per pound to price per bushel.

Usage:

let pricePerBushel = unitConverter.pricePerPoundToPricePerBushel(pricePerPound, bushelCropConversionFactor);

pricePerKilogramToPricePerBushel

Converts input in price per kilogram to price per bushel.

Usage:

let pricePerBushel = unitConverter.pricePerKilogramToPricePerBushel(pricePerKilogram, bushelCropConversionFactor);

pricePerBushelToPricePerKilogram

Converts input in price per bushel to price per pound.

Usage:

let pricePerKilogram = unitConverter.pricePerBushelToPricePerKilogram(pricePerBushel, bushelCropConversionFactor);

pricePerPoundToPricePerKilogram

Converts input in price per pound to price per kilogram.

Usage:

let pricePerKilogram = unitConverter.pricePerPoundToPricePerKilogram(pricePerPound);

pricePerKilogramToPricePerPound

Converts input in price per kilogram to price per pound.

Usage:

let pricePerPound = unitConverter.pricePerKilogramToPricePerPound(pricePerKilogram);

squareMetersToAcres

Converts input in square meters to acres.
 
Usage:

let acres = unitConverter.squareMetersToAcres(squareMeters);

squareMetersToHectares

Converts input in square meters to hectares.
 
Usage:

let hectares = unitConverter.squareMetersToHectares(squareMeters);