UNPKG

return-style

Version:

Non-intrusively convert the result of any function or promise to the user's desired style.

81 lines (80 loc) 2.15 kB
{ "name": "return-style", "version": "3.0.1", "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": ">=16" }, "scripts": { "prepare": "ts-patch install -s", "lint": "eslint --ext .js,.jsx,.ts,.tsx --quiet src __tests__", "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --runInBand --config jest.config.cjs", "test:coverage": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --coverage --runInBand --config jest.config.cjs", "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": { "@blackglory/jest-resolver": "^0.3.0", "@commitlint/cli": "^17.4.4", "@commitlint/config-conventional": "^17.4.4", "@types/jest": "^29.5.0", "@types/node": "14", "@typescript-eslint/eslint-plugin": "^5.55.0", "@typescript-eslint/parser": "^5.55.0", "cross-env": "^7.0.3", "eslint": "^8.36.0", "husky": "4", "iterable-operator": "4.0.3", "jest": "^29.5.0", "jest-resolve": "^29.5.0", "npm-run-all": "^4.1.5", "rimraf": "^4.4.0", "standard-version": "^9.5.0", "ts-jest": "^29.0.5", "ts-patch": "^2.1.0", "tslib": "^2.5.0", "typescript": "4.8", "typescript-transform-paths": "^3.4.6" }, "dependencies": { "@blackglory/prelude": "^0.3.1" } }