packages/units/package.json
{
"name": "@thi.ng/units",
"version": "0.4.46",
"description": "Extensible SI unit creation, conversions, quantities & calculations (incl. ~170 predefined units & constants)",
"type": "module",
"module": "./index.js",
"typings": "./index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/thi-ng/umbrella.git"
},
"homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/units#readme",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/postspectacular"
},
{
"type": "patreon",
"url": "https://patreon.com/thing_umbrella"
}
],
"author": "Karsten Schmidt (https://thi.ng)",
"license": "Apache-2.0",
"scripts": {
"build": "yarn build:esbuild && yarn build:decl",
"build:decl": "tsc --declaration --emitDeclarationOnly",
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
"clean": "bun ../../tools/src/clean-package.ts constants units",
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
"pub": "yarn npm publish --access public",
"test": "bun test",
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
},
"dependencies": {
"@thi.ng/api": "^8.11.2",
"@thi.ng/checks": "^3.6.4",
"@thi.ng/equiv": "^2.1.58",
"@thi.ng/errors": "^2.5.7"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.43.2",
"esbuild": "^0.21.1",
"typedoc": "^0.25.13",
"typescript": "^5.4.5"
},
"keywords": [
"acceleration",
"angle",
"area",
"bits",
"bytes",
"calculation",
"capacitance",
"current",
"voltage",
"resistance",
"conversion",
"energy",
"force",
"frequency",
"length",
"mass",
"math",
"power",
"si",
"speed",
"symbolic",
"temperature",
"time",
"typescript",
"units",
"velocity",
"volume"
],
"publishConfig": {
"access": "public"
},
"browser": {
"process": false,
"setTimeout": false
},
"engines": {
"node": ">=18"
},
"files": [
"./*.js",
"./*.d.ts",
"constants",
"units"
],
"exports": {
".": {
"default": "./index.js"
},
"./api": {
"default": "./api.js"
},
"./constants/densities": {
"default": "./constants/densities.js"
},
"./constants/earth": {
"default": "./constants/earth.js"
},
"./constants/paper-sizes": {
"default": "./constants/paper-sizes.js"
},
"./constants/velocities": {
"default": "./constants/velocities.js"
},
"./unit": {
"default": "./unit.js"
},
"./units/accel": {
"default": "./units/accel.js"
},
"./units/angle": {
"default": "./units/angle.js"
},
"./units/area": {
"default": "./units/area.js"
},
"./units/data": {
"default": "./units/data.js"
},
"./units/density": {
"default": "./units/density.js"
},
"./units/electric": {
"default": "./units/electric.js"
},
"./units/energy": {
"default": "./units/energy.js"
},
"./units/force": {
"default": "./units/force.js"
},
"./units/frequency": {
"default": "./units/frequency.js"
},
"./units/length": {
"default": "./units/length.js"
},
"./units/luminous": {
"default": "./units/luminous.js"
},
"./units/mass": {
"default": "./units/mass.js"
},
"./units/parts": {
"default": "./units/parts.js"
},
"./units/power": {
"default": "./units/power.js"
},
"./units/pressure": {
"default": "./units/pressure.js"
},
"./units/substance": {
"default": "./units/substance.js"
},
"./units/temperature": {
"default": "./units/temperature.js"
},
"./units/time": {
"default": "./units/time.js"
},
"./units/velocity": {
"default": "./units/velocity.js"
},
"./units/volume": {
"default": "./units/volume.js"
}
},
"thi.ng": {
"status": "beta",
"year": 2021
}
}