lib-result
Version:
A Rust-inspired `Result` type for type-safe error handling in TypeScript and JavaScript
51 lines • 1.33 kB
JSON
{
"name": "lib-result",
"author": "Ahmad Othman",
"license": "MIT",
"version": "3.1.1",
"description": "A Rust-inspired `Result` type for type-safe error handling in TypeScript and JavaScript",
"repository": {
"type": "git",
"url": "https://github.com/AhmedOsman101/lib-result.git"
},
"homepage": "https://github.com/AhmedOsman101/lib-result/wiki",
"keywords": [
"typescript",
"javascript",
"result",
"rust",
"error-handling"
],
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"files": [
"dist"
],
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@biomejs/biome": "2.0.0-beta.6",
"@vitest/coverage-v8": "3.2.4",
"esbuild": "^0.25.5",
"tsup": "^8.5.0",
"typescript": "^5.8.3",
"vitest": "^3.2.4"
},
"scripts": {
"clean": "rm -rf dist/*",
"format": "biome check --fix .",
"format:unsafe": "biome check --fix --unsafe .",
"build": "pnpm clean && tsup && attw --pack .",
"test": "pnpm build && pnpm test:run",
"test:run": "vitest run",
"test:watch": "vitest --watch",
"test:coverage": "vitest run --coverage; rm -rf coverage"
}
}