0.0.8 • Published 1 year ago

create-cached-fn v0.0.8

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

create-cached-fn

Utility to run promise in daemon mode and save cache in file.

To install package:

npm install create-cached-fn

Usage

import createCachedFn from 'create-cached-fn';

createCachedFn(
  async () => [1, 2, 3],
  './test.json'
  true,
)

Docs

  • promiseFunc - function to execute
  • cachePath - path to save result
  • alwaysRunPromise? - run the promise at startup or skip waiting

Deploy

To install dependencies:

npm install

To build:

npm build

This project was created using bun init in bun v1.1.0. Bun is a fast all-in-one JavaScript runtime.

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago