one-time-execution-method
Version:
define a method that will be executed only once
71 lines (70 loc) • 2.43 kB
JSON
{
"name": "one-time-execution-method",
"version": "3.1.3",
"publishConfig": {
"access": "public",
"provenance": true
},
"types": "./types/one-time-execution-method.d.mts",
"exports": {
".": {
"types": "./types/one-time-execution-method.d.mts",
"default": "./src/one-time-execution-method.mjs"
}
},
"description": "define a method that will be executed only once",
"keywords": [
"async",
"cache",
"once",
"one",
"one-time",
"single"
],
"contributors": [
{
"name": "Markus Felten",
"email": "markus.felten@gmx.de"
}
],
"license": "0BSD",
"scripts": {
"prepare": "node --run prepare:typescript",
"prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
"test": "node --run test:browser-ava && node --run test:ava",
"test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
"test:browser-ava": "browser-ava --headless --no-keep-open tests/*-ava.mjs tests/*-ava-browser.mjs",
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
"docs": "documentation readme --section=API ./src**/*.mjs",
"lint": "node --run lint:docs && node --run lint:typescript",
"lint:docs": "documentation lint ./src**/*.mjs",
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
},
"devDependencies": {
"ava": "^6.3.0",
"browser-ava": "^2.3.26",
"c8": "^10.1.3",
"documentation": "^14.0.3",
"semantic-release": "^24.2.3",
"typescript": "^5.8.3"
},
"engines": {
"node": ">=22.15.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/arlac77/one-time-execution-method.git"
},
"bugs": {
"url": "https://github.com/arlac77/one-time-execution-method/issues"
},
"homepage": "https://github.com/arlac77/one-time-execution-method#readme",
"template": {
"inheritFrom": [
"arlac77/template-arlac77-github",
"arlac77/template-browser-ava",
"arlac77/template-javascript-component",
"arlac77/template-typescript"
]
}
}