@piyawasin/attempt
Version:
Inspired by Golang error handling, this package will help you code defensively by always handling the errors.
42 lines (41 loc) • 1.01 kB
JSON
{
"name": "@piyawasin/attempt",
"version": "2.0.1",
"description": "Inspired by Golang error handling, this package will help you code defensively by always handling the errors.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts"
}
},
"files": [
"dist/"
],
"scripts": {
"build:esm": "tsc --project tsconfig.json",
"build:cjs": "tsc --project tsconfig.cjs.json",
"build": "npm run build:esm && npm run build:cjs",
"prepublish": "npm run build",
"publish-npm": "npm publish --access public"
},
"author": "Piyawasin Pikror-ngarn",
"license": "ISC",
"keywords": [
"error",
"handling",
"function",
"error-handling",
"exception",
"go",
"golang",
"sugar"
],
"readme": "README.md",
"devDependencies": {
"typescript": "^4.6.2"
}
}