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
Converts input in gallons to total weight in lbs of 28% Nitrogen Content Fertilizer.
Usage:
let totalWeight = unitConverter._28uanTotalWeight(gallons);
Converts input in gallons to total weight in lbs of 32% Nitrogen Content Fertilizer.
Usage:
let totalWeight = unitConverter._32uanTotalWeight(gallons);
Converts input in gallons to total weight in lbs of 21% Ammonium Thio Sulfate Fertilizer.
Usage:
let totalWeight = unitConverter._21ammoniumThioSulfateTotalWeight(gallons);
Converts input in acres to square meters.
Usage:
let squareMeters = unitConverter.acresToSquareMeters(acres);
Converts input in acres to hectares.
Usage:
let hectares = unitConverter.acresToHectares(acres);
Converts input in hectares to acres.
Usage:
let acres = unitConverter.hectaresToAcres(hectares);
Converts input in hectares to square meters.
Usage:
let squareMeters = unitConverter.hectaresToSquareMeters(hectares);
Converts input in pounds per acre to kilos per hectare.
Usage:
let kilogramsPerHectare = unitConverter.poundsPerAcreToKilogramsPerHectare(poundsPerAcre);
Converts input in kilos per hectare to pounds per acre.
Usage:
let poundsPerAcre = unitConverter.kilogramsPerHectareToPoundsPerAcre(kilogramsPerHectare);
Converts input in price per bushel to price per pound.
Usage:
let pricePerPound = unitConverter.pricePerBushelToPricePerPound(pricePerBushel, bushelCropConversionFactor);
Converts input in price per pound to price per bushel.
Usage:
let pricePerBushel = unitConverter.pricePerPoundToPricePerBushel(pricePerPound, bushelCropConversionFactor);
Converts input in price per kilogram to price per bushel.
Usage:
let pricePerBushel = unitConverter.pricePerKilogramToPricePerBushel(pricePerKilogram, bushelCropConversionFactor);
Converts input in price per bushel to price per pound.
Usage:
let pricePerKilogram = unitConverter.pricePerBushelToPricePerKilogram(pricePerBushel, bushelCropConversionFactor);
Converts input in price per pound to price per kilogram.
Usage:
let pricePerKilogram = unitConverter.pricePerPoundToPricePerKilogram(pricePerPound);
Converts input in price per kilogram to price per pound.
Usage:
let pricePerPound = unitConverter.pricePerKilogramToPricePerPound(pricePerKilogram);
Converts input in square meters to acres.
Usage:
let acres = unitConverter.squareMetersToAcres(squareMeters);
Converts input in square meters to hectares.
Usage:
let hectares = unitConverter.squareMetersToHectares(squareMeters);