UNPKG

promise-swr

Version:

Caches a promise-returning function with a stale-while-revalidate strategy

43 lines (42 loc) 800 B
{ "name": "promise-swr", "version": "1.0.2", "description": "Caches a promise-returning function with a stale-while-revalidate strategy", "keywords": [ "async", "cache", "function", "memoize", "promise", "revalidate", "stale", "swr", "while" ], "bugs": "https://github.com/bloq/js-packages/issues", "license": "MIT", "author": "Gabriel Montes <gabriel@bloq.com>", "files": [ "src" ], "main": "src/index.js", "repository": "bloq/js-packages", "scripts": { "coverage": "nyc npm run test", "deps:check": "dependency-check --no-dev .", "test": "mocha" }, "nyc": { "all": true, "include": [ "src/**/*.js" ], "reporter": [ "lcov", "text" ] }, "engines": { "node": ">= 14" } }