@dschz/try-catch
Version:
Simple try-catch utility function for JavaScript
85 lines (84 loc) • 2.06 kB
JSON
{
"name": "@dschz/try-catch",
"version": "1.2.2",
"description": "Simple try-catch utility function for JavaScript",
"type": "module",
"author": "Daniel Sanchez <dsanc89@pm.me>",
"license": "MIT",
"homepage": "https://github.com/dsnchz/try-catch#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/dsnchz/try-catch.git"
},
"bugs": {
"url": "https://github.com/dsnchz/try-catch/issues"
},
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"keywords": [
"try-catch",
"try catch",
"error handling",
"safe await",
"promise wrapper",
"tuple result",
"sync async utility",
"non-throwing",
"typescript",
"javascript",
"await error",
"error tuple",
"error-first",
"safe function wrapper",
"try-catch utility"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"browser": {},
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"typesVersions": {},
"scripts": {
"build": "tsup",
"build:watch": "tsup --watch",
"dev": "vite",
"format": "prettier . --check",
"format:fix": "prettier . --write",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"pkg:changeset": "changeset",
"pkg:version": "changeset version",
"pkg:publish": "bun run build && changeset publish",
"serve": "vite preview",
"start": "vite",
"test": "bun test",
"test:cov": "bun test --coverage",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@changesets/cli": "2.29.8",
"@tailwindcss/vite": "4.1.18",
"@types/bun": "1.3.4",
"eslint": "9.39.1",
"eslint-plugin-simple-import-sort": "12.1.1",
"eslint-plugin-solid": "0.14.5",
"globals": "16.5.0",
"jiti": "2.6.1",
"jsdom": "27.3.0",
"prettier": "3.7.4",
"tsup": "8.5.1",
"typescript": "5.9.3",
"typescript-eslint": "8.49.0",
"vite": "7.2.7",
"vite-plugin-solid": "2.11.10"
}
}