UNPKG

ts-safe

Version:

A functional, type-safe utility library for elegant error handling and asynchronous operations in JavaScript/TypeScript.

96 lines (95 loc) 2.28 kB
{ "name": "ts-safe", "description": "A functional, type-safe utility library for elegant error handling and asynchronous operations in JavaScript/TypeScript.", "keywords": [ "typescript", "javascript", "functional-programming", "fp", "chain", "type-safe", "error-handling", "async", "promise", "monad", "result-type", "pipeline", "effect", "composable", "utility", "map", "railway" ], "author": "cging", "license": "MIT", "version": "0.0.5", "type": "module", "sideEffects": false, "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs", "default": "./dist/index.js" } }, "files": [ "dist" ], "scripts": { "prepare": "husky install", "test": "vitest", "lint-staged": "lint-staged", "build": "tsup", "format": "prettier --write ./**/*.ts", "type-check": "tsc --noEmit", "lint": "eslint .", "prepare:release": "npm run format && npm run type-check && npm run test run", "prepare:version": "npm --no-git-tag-version version patch", "release": "npm run prepare:release && npm run build && npm run prepare:version && npm publish" }, "devDependencies": { "@eslint/js": "^9.19.0", "@types/node": "^22.13.5", "eslint": "^9.19.0", "globals": "^15.14.0", "husky": "^8.0.3", "lint-staged": "^14.0.1", "prettier": "^3.2.5", "tsup": "^8.3.6", "typescript": "~5.7.2", "typescript-eslint": "^8.22.0", "vitest": "^3.0.6" }, "lint-staged": { "*.{ts,tsx}": [ "eslint --fix", "prettier --write" ] }, "engines": { "node": ">=14.0.0" }, "repository": { "type": "git", "url": "https://github.com/cgoinglove/ts-safe.git" }, "prettier": { "printWidth": 120, "tabWidth": 2, "useTabs": false, "semi": true, "singleQuote": true, "quoteProps": "as-needed", "jsxSingleQuote": false, "trailingComma": "es5", "bracketSpacing": true, "bracketSameLine": false, "arrowParens": "always", "endOfLine": "lf", "embeddedLanguageFormatting": "auto" } }