just-defer-call
Version:
The `deferCall` utility is a higher-order function that defers the execution of a given function until the returned function is called. It supports synchronous and asynchronous functions.
34 lines (33 loc) • 693 B
JSON
{
"name": "just-defer-call",
"version": "1.0.5",
"description": "",
"main": "index.js",
"repository": "https://github.com/dmitrytarassov/just-defer-call",
"author": "Dmitriy Tarasov <meowbl@icloud.com>",
"license": "MIT",
"scripts": {
"build": "tsup",
"test": "jest"
},
"dependencies": {},
"devDependencies": {
"@jest/globals": "^29.7.0",
"eslint": "^9",
"eslint-config-the-only-perfect": "^2",
"jest": "^29.7.0",
"ts-jest": "^29.2.5",
"tsup": "^8.3.5",
"typescript": "^5.8.3"
},
"private": false,
"keywords": [
"defer",
"deferred",
"lazy",
"lazy-evaluation",
"function-wrapper",
"call",
"just"
]
}