Converts inches to meters.
import { inchesToMeters } from '@jonibach/convert'
const result = inchesToMeters(1)
params:
inches
async: no
Demo not found
Converts meters to inches.
import { metersToInches } from '@jonibach/convert'
const result = metersToInches(1)
params:
meters
async: no
Demo not found
Converts feet to meters.
import { feetToMeters } from '@jonibach/convert'
const result = feetToMeters(1)
params:
feet
async: no
Demo not found
Converts meters to feet.
import { metersToFeet } from '@jonibach/convert'
const result = metersToFeet(1)
params:
meters
async: no
Demo not found
Converts miles to meters.
import { milesToMeters } from '@jonibach/convert'
const result = milesToMeters(1)
params:
miles
async: no
Demo not found
Converts meters to miles.
import { metersToMiles } from '@jonibach/convert'
const result = metersToMiles(1)
params:
meters
async: no
Demo not found
Converts pounds to kilograms.
import { poundsToKilograms } from '@jonibach/convert'
const result = poundsToKilograms(1)
params:
pounds
async: no
Demo not found
Converts kilograms to pounds.
import { kilogramsToPounds } from '@jonibach/convert'
const result = kilogramsToPounds(1)
params:
kilograms
async: no
Demo not found
Converts ounces to kilograms.
import { ouncesToKilograms } from '@jonibach/convert'
const result = ouncesToKilograms(1)
params:
ounces
async: no
Demo not found
Converts kilograms to ounces.
import { kilogramsToOunces } from '@jonibach/convert'
const result = kilogramsToOunces(1)
params:
kilograms
async: no
Demo not found
Converts US gallons to liters.
import { gallonsToLiters } from '@jonibach/convert'
const result = gallonsToLiters(1)
params:
gallons
async: no
Demo not found
Converts liters to US gallons.
import { litersToGallons } from '@jonibach/convert'
const result = litersToGallons(1)
params:
liters
async: no
Demo not found
Converts cubic feet to liters.
import { cubicFeetToLiters } from '@jonibach/convert'
const result = cubicFeetToLiters(1)
params:
cubicFeet
async: no
Demo not found
Converts liters to cubic feet.
import { litersToCubicFeet } from '@jonibach/convert'
const result = litersToCubicFeet(1)
params:
liters
async: no
Demo not found
Converts Fahrenheit to Kelvin.
import { fahrenheitToKelvin } from '@jonibach/convert'
const result = fahrenheitToKelvin(32)
params:
fahrenheit
async: no
Demo not found
Converts Kelvin to Fahrenheit.
import { kelvinToFahrenheit } from '@jonibach/convert'
const result = kelvinToFahrenheit(273.15)
params:
kelvin
async: no
Demo not found
Converts Celsius to Kelvin.
import { celsiusToKelvin } from '@jonibach/convert'
const result = celsiusToKelvin(0)
params:
celsius
async: no
Demo not found
Converts Kelvin to Celsius.
import { kelvinToCelsius } from '@jonibach/convert'
const result = kelvinToCelsius(273.15)
params:
kelvin
async: no
Demo not found
Converts calories to joules.
import { caloriesToJoules } from '@jonibach/convert'
const result = caloriesToJoules(1)
params:
calories
async: no
Demo not found
Converts joules to calories.
import { joulesToCalories } from '@jonibach/convert'
const result = joulesToCalories(1)
params:
joules
async: no
Demo not found
Converts BTUs to joules.
import { btusToJoules } from '@jonibach/convert'
const result = btusToJoules(1)
params:
btus
async: no
Demo not found
Converts joules to BTUs.
import { joulesToBtus } from '@jonibach/convert'
const result = joulesToBtus(1)
params:
joules
async: no
Demo not found
Converts PSI to Pascals.
import { psiToPascals } from '@jonibach/convert'
const result = psiToPascals(1)
params:
psi
async: no
Demo not found
Converts Pascals to PSI.
import { pascalsToPsi } from '@jonibach/convert'
const result = pascalsToPsi(1)
params:
pascals
async: no
Demo not found
Converts atmospheres to Pascals.
import { atmospheresToPascals } from '@jonibach/convert'
const result = atmospheresToPascals(1)
params:
atmospheres
async: no
Demo not found
Converts Pascals to atmospheres.
import { pascalsToAtmospheres } from '@jonibach/convert'
const result = pascalsToAtmospheres(1)
params:
pascals
async: no
Demo not found
Converts horsepower to watts.
import { horsepowerToWatts } from '@jonibach/convert'
const result = horsepowerToWatts(1)
params:
horsepower
async: no
Demo not found
Converts watts to horsepower.
import { wattsToHorsepower } from '@jonibach/convert'
const result = wattsToHorsepower(1)
params:
watts
async: no
Demo not found
Converts a URL string to an encoded URL string.
import { urlToEncode } from '@jonibach/convert'
const result = urlToEncode(https://example.com/?search=query)
params:
str
async: no
Demo not found
Converts an encoded URL string to a URL string.
import { urlToDecode } from '@jonibach/convert'
const result = urlToDecode(https%3A%2F%2Fexample.com%2F%3Fsearch%3Dquery)
params:
str
async: no
Demo not found
Converts a string to a hexadecimal string.
import { stringToHex } from '@jonibach/convert'
const result = stringToHex(example)
params:
str
async: no
Demo not found
Converts a hexadecimal string to a string.
import { hexToString } from '@jonibach/convert'
const result = hexToString(6578616d706c65)
params:
hex
async: no
Demo not found
Converts a string to a binary string.
import { stringToBinary } from '@jonibach/convert'
const result = stringToBinary(example)
params:
str
async: no
Demo not found
Converts a binary string to a string.
import { binaryToString } from '@jonibach/convert'
const result = binaryToString(01100101 01111000 01100001 01101101 01110000 01101100 01100101)
params:
binary
async: no
Demo not found
Converts a string to a base64 string using the Web API.
import { webStringToBase64 } from '@jonibach/convert'
const result = webStringToBase64(example string)
params:
str
async: no
Demo not found
Converts a base64 string to a string using the Web API.
import { webBase64ToString } from '@jonibach/convert'
const result = webBase64ToString(ZXhhbXBsZSBzdHJpbmc=)
params:
b64
async: no
Demo not found
Converts a binary string to a decimal number.
import { binaryToDecimal } from '@jonibach/convert'
const result = binaryToDecimal(1010)
params:
binaryString
async: no
Demo not found
Converts a decimal number to a binary string.
import { decimalToBinary } from '@jonibach/convert'
const result = decimalToBinary(10)
params:
decimalNumber
async: no
Demo not found
Converts a hexadecimal string to a decimal number.
import { hexadecimalToDecimal } from '@jonibach/convert'
const result = hexadecimalToDecimal(A)
params:
hexString
async: no
Demo not found
Converts a decimal number to a hexadecimal string.
import { decimalToHexadecimal } from '@jonibach/convert'
const result = decimalToHexadecimal(10)
params:
decimalNumber
async: no
Demo not found
Converts a binary string to a hexadecimal string.
import { binaryToHexadecimal } from '@jonibach/convert'
const result = binaryToHexadecimal(1010)
params:
binaryString
async: no
Demo not found
Converts a hexadecimal string to a binary string.
import { hexadecimalToBinary } from '@jonibach/convert'
const result = hexadecimalToBinary(A)
params:
hexString
async: no
Demo not found
Converts a decimal number to an octal string.
import { decimalToOctal } from '@jonibach/convert'
const result = decimalToOctal(10)
params:
decimalNumber
async: no
Demo not found
Converts an octal string to a decimal number.
import { octalToDecimal } from '@jonibach/convert'
const result = octalToDecimal(12)
params:
octalString
async: no
Demo not found
Converts a date object to a Unix timestamp.
import { dateToTimestamp } from '@jonibach/convert'
const result = dateToTimestamp(Sun Dec 22 2024 17:22:18 GMT+0000 (Coordinated Universal Time))
params:
date
async: no
Demo not found
Converts a Unix timestamp to a date object.
import { timestampToDate } from '@jonibach/convert'
const result = timestampToDate(1734888138300)
params:
timestamp
async: no
Demo not found
Converts a date object to an ISO 8601 string.
import { dateToISOString } from '@jonibach/convert'
const result = dateToISOString(Sun Dec 22 2024 17:22:18 GMT+0000 (Coordinated Universal Time))
params:
date
async: no
Demo not found
Converts an ISO 8601 string to a date object.
import { isoStringToDate } from '@jonibach/convert'
const result = isoStringToDate(2024-12-22T17:22:18.300Z)
params:
isoString
async: no
Demo not found
Converts a Unix timestamp to an ISO 8601 string.
import { timestampToISOString } from '@jonibach/convert'
const result = timestampToISOString(1734888138302)
params:
timestamp
async: no
Demo not found
Converts an ISO 8601 string to a Unix timestamp.
import { isoStringToTimestamp } from '@jonibach/convert'
const result = isoStringToTimestamp(2024-12-22T17:22:18.302Z)
params:
isoString
async: no
Demo not found
Converts a date object to a localized date and time string.
import { dateToLocalString } from '@jonibach/convert'
const result = dateToLocalString(Sun Dec 22 2024 17:22:18 GMT+0000 (Coordinated Universal Time),en-US,[object Object])
params:
date
locale = 'default'
options
async: no
Demo not found
Converts a date object to the day of the week.
import { dateToDayOfWeek } from '@jonibach/convert'
const result = dateToDayOfWeek(Sun Dec 22 2024 17:22:18 GMT+0000 (Coordinated Universal Time),en-US)
params:
date
locale = 'en-US'
async: no
Demo not found
Converts an RGB color to an HSL color.
import { rgbToHsl } from '@jonibach/convert'
const result = rgbToHsl([object Object])
params:
{ r
g
b }
async: no
Demo not found
Converts an HSL color to an RGB color.
import { hslToRgb } from '@jonibach/convert'
const result = hslToRgb([object Object])
params:
{ h
s
l }
async: no
Demo not found
Converts a hex color to an HSL color.
import { hexToHsl } from '@jonibach/convert'
const result = hexToHsl(#ffffff)
params:
hex
async: no
Demo not found
Converts an HSL color to a hex color.
import { hslToHex } from '@jonibach/convert'
const result = hslToHex([object Object])
params:
{ h
s
l }
async: no
Demo not found
Converts an RGBA color to a CSS string.
import { rgbaToString } from '@jonibach/convert'
const result = rgbaToString([object Object])
params:
{ r
g
b
a = 1 }
async: no
Demo not found
Converts an HSLA color to a CSS string.
import { hslaToString } from '@jonibach/convert'
const result = hslaToString([object Object])
params:
{ h
s
l
a = 1 }
async: no
Demo not found
Calculates the complementary HSL color.
import { complementaryHsl } from '@jonibach/convert'
const result = complementaryHsl([object Object])
params:
{ h
s
l }
async: no
Demo not found
Converts a JSON string to an object.
import { jsonStringToObject } from '@jonibach/convert'
const result = jsonStringToObject({"name":"John","age":30})
params:
jsonString
async: no
Demo not found
Converts an object to a JSON string.
import { objectToJsonString } from '@jonibach/convert'
const result = objectToJsonString([object Object])
params:
object
async: no
Demo not found
Converts a YAML string to a JSON object.
import { yamlToJson } from '@jonibach/convert'
const result = yamlToJson(name: John
age: 30)
params:
yamlString
async: no
Demo not found
Converts a JSON object to a YAML string.
import { jsonToYaml } from '@jonibach/convert'
const result = jsonToYaml([object Object])
params:
jsonObject
async: no
Demo not found
Converts a CSV string to a JSON object.
import { csvToJson } from '@jonibach/convert'
const result = csvToJson(name,age
John,30)
params:
csvString
async: no
Demo not found
Converts a JSON object to a CSV string.
import { jsonToCsv } from '@jonibach/convert'
const result = jsonToCsv([object Object])
params:
jsonObject
async: no
Demo not found
Converts an XML string to a JSON object.
import { xmlToJson } from '@jonibach/convert'
const result = xmlToJson(<person><name>John</name><age>30</age></person>)
params:
xmlString
async: yes
Demo not found
Converts a JSON object to an XML string.
import { jsonToXml } from '@jonibach/convert'
const result = jsonToXml([object Object])
params:
jsonObject
async: no
Demo not found
Converts a markdown string to an HTML string.
import { markdownToHtml } from '@jonibach/convert'
const result = markdownToHtml(# Hello World)
params:
markdownText
async: yes
Demo not found
Compresses a string using the DEFLATE algorithm.
import { compressString } from '@jonibach/convert'
const result = compressString(Hello World)
params:
str
async: no
Demo not found
Decompresses a Uint8Array to a string using the DEFLATE algorithm.
import { decompressToString } from '@jonibach/convert'
const result = decompressToString()
params:
data
async: no
Demo not found