return-style
Version:
Non-intrusively convert the result of any function or promise to the user's desired style.
78 lines (77 loc) • 1.85 kB
JSON
{
"name": "return-style",
"version": "4.0.0",
"description": "Non-intrusively convert the result of any function or promise to the user's desired style.",
"keywords": [
"convert",
"converter",
"conv",
"promise",
"async",
"function",
"style",
"rust",
"optional",
"option",
"some",
"none",
"result",
"ok",
"err",
"golang",
"tuple"
],
"files": [
"lib",
"src"
],
"type": "module",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"sideEffects": false,
"repository": "git@github.com:BlackGlory/return-style.git",
"author": "BlackGlory <woshenmedoubuzhidao@blackglory.me>",
"license": "MIT",
"engines": {
"node": ">=22"
},
"scripts": {
"prepare": "ts-patch install -s",
"lint": "eslint --ext .js,.jsx,.ts,.tsx --quiet src __tests__",
"test": "vitest run",
"prepublishOnly": "run-s prepare clean build",
"clean": "rimraf lib",
"build": "tsc --project tsconfig.build.json",
"release": "standard-version"
},
"husky": {
"hooks": {
"pre-commit": "run-s prepare build lint test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"devDependencies": {
"@commitlint/cli": "^20.4.1",
"@commitlint/config-conventional": "^20.4.1",
"@eslint/js": "^10.0.1",
"@types/node": "22",
"cross-env": "^10.1.0",
"eslint": "^10.0.0",
"husky": "4",
"iterable-operator": "6.0.0",
"npm-run-all": "^4.1.5",
"rimraf": "^6.1.3",
"standard-version": "^9.5.0",
"ts-patch": "^3.3.0",
"tslib": "^2.8.1",
"typescript": "5.9.3",
"typescript-eslint": "^8.56.0",
"typescript-transform-paths": "^3.5.6",
"vite": "^7.3.1",
"vite-tsconfig-paths": "^6.1.1",
"vitest": "^4.0.18"
},
"dependencies": {
"@blackglory/prelude": "^0.4.0"
}
}