UNPKG

convert

Version:

The smallest & fastest library for really easy, totally type-safe unit conversions in TypeScript & JavaScript

306 lines (305 loc) 5.67 kB
{ "name": "convert", "version": "5.12.0", "description": "The smallest & fastest library for really easy, totally type-safe unit conversions in TypeScript & JavaScript", "keywords": [ "convert", "convert-units", "unit-conversion", "uom", "metric", "imperial", "units", "unit", "measurement", "measure", "temperature", "mass", "weight", "length", "data" ], "homepage": "https://convert.js.org/", "repository": { "type": "git", "url": "http://github.com/jonahsnider/convert.git" }, "license": "MIT", "author": { "name": "Jonah Snider", "email": "jonah@jonahsnider.com", "url": "https://jonahsnider.com" }, "sideEffects": false, "type": "commonjs", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "default": "./dist/index.js" } }, "main": "./dist/index.js", "jsdelivr": "./dist/index.mjs", "unpkg": "./dist/index.mjs", "module": "./dist/index.mjs", "browser": "./dist/index.mjs", "react-native": "./dist/index.js", "typings": "./dist/index.d.ts", "files": [ "dist/", "!dist/typings", "!dist/src", "!dist/test", "!dist/scripts", "!dist/rollup.config.js" ], "scripts": { "benchmarks": "wireit", "build": "wireit", "build:ci": "wireit", "bundle": "wireit", "docs": "wireit", "generate": "wireit", "lint": "wireit", "lint:fix": "wireit", "size": "wireit", "test": "wireit", "test:ci": "wireit", "test:dev": "wireit", "types": "wireit", "validate-api": "wireit", "validate-api:local": "wireit" }, "dependencies": { "wireit": "0.14.12" }, "devDependencies": { "@babel/core": "7.27.1", "@babel/preset-env": "7.27.2", "@biomejs/biome": "1.9.4", "@codspeed/vitest-plugin": "4.0.1", "@jonahsnider/util": "11.0.0", "@microsoft/api-extractor": "7.52.7", "@rollup/plugin-babel": "6.0.4", "@rollup/plugin-node-resolve": "16.0.1", "@rollup/plugin-swc": "0.4.0", "@rollup/plugin-terser": "0.4.4", "@size-limit/preset-small-lib": "11.2.0", "@swc/core": "1.11.24", "@tsconfig/node20": "20.1.5", "@tsconfig/strictest": "2.0.5", "@types/node": "22.15.17", "@vitest/coverage-v8": "3.1.3", "@vitest/ui": "^3.0.0", "bignumber.js": "9.3.0", "rollup": "4.40.2", "size-limit": "11.2.0", "typedoc": "0.28.4", "typescript": "5.8.3", "vitest": "3.1.3" }, "packageManager": "yarn@4.9.1", "runkitExampleFilename": "./docs/runkit.js", "size-limit": [ { "brotli": true, "limit": "5.83 KB", "path": "./dist/index.js" }, { "gzip": true, "limit": "7.32 KB", "path": "./dist/index.js" }, { "brotli": true, "limit": "5.59 KB", "path": "./dist/index.mjs" }, { "gzip": true, "limit": "7.07 KB", "path": "./dist/index.mjs" } ], "wireit": { "lint": { "command": "biome check --colors=force .", "dependencies": [ { "script": "generate", "cascade": false } ], "output": [] }, "lint:fix": { "command": "biome check --colors=force . --write --unsafe", "dependencies": [ { "script": "generate", "cascade": false } ] }, "generate": { "command": "bun scripts/generate.ts -o src/generated/", "files": [ "scripts/generate.ts", "src/generation/**/*.ts", "src/conversions/**/*.ts" ], "clean": false, "output": [ "src/generated" ] }, "types": { "command": "tsc --pretty", "files": [ "src/**/*.ts", "tsconfig.json" ], "output": [ "dist/typings/" ], "dependencies": [ { "script": "generate", "cascade": false } ] }, "bundle": { "command": "rollup --config rollup.config.ts --configPlugin swc", "files": [ "src/**/*.ts", "rollup.config.ts" ], "output": [ "dist/index.js", "dist/index.mjs" ], "clean": false, "dependencies": [ { "script": "generate", "cascade": false } ] }, "validate-api": { "command": "api-extractor run", "files": [ "api-extractor.json", "docs/convert.api.md" ], "dependencies": [ "types" ], "clean": false, "output": [ "dist/index.d.ts", "temp/convert.api.json", "temp/convert.api.md" ] }, "validate-api:local": { "command": "api-extractor run --local --verbose", "files": [ "api-extractor.json", "docs/convert.api.md" ], "dependencies": [ "types" ], "clean": false, "output": [ "docs/convert.api.md", "dist/index.d.ts", "temp/convert.api.json", "temp/convert.api.md" ] }, "docs": { "command": "typedoc src/index.ts --out docs_out", "files": [ "src/**/*.ts" ], "output": [ "docs_out" ], "dependencies": [ { "script": "generate", "cascade": false } ] }, "test": { "command": "vitest run", "files": [ "src/**/*.ts" ], "dependencies": [ { "script": "generate", "cascade": false } ] }, "test:dev": { "command": "vitest --ui", "files": [ "src/**/*.ts" ], "service": true, "dependencies": [ { "script": "generate", "cascade": false } ] }, "size": { "command": "size-limit", "dependencies": [ "bundle" ], "output": [] }, "test:ci": { "dependencies": [ "build:ci", "lint", "test", "size" ] }, "benchmarks": { "command": "vitest bench --run", "files": [ "src/**/*.ts" ], "dependencies": [ { "script": "generate", "cascade": false } ] }, "build:ci": { "dependencies": [ "bundle", "validate-api" ] }, "build": { "dependencies": [ "bundle", "validate-api:local" ] } } }