0.2.1 • Published 2 years ago

node-data-finder v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Node Data Finder

Finds data from api. Reduces calls through caching.

Usage

const {find} = require('node-data-finder')

find("example_type", "https://example-address.to/query/data").then(found => {
    console.log("data found!")
})

API

find(type::string, query::string, timeout?::Date|number)

type - a tag used to separate data when it is cached

query - a url to make the request to. Passing "clear" as the query will clear this type of cache

timeout - a date or count in milliseconds when the cache expires

debug - set to info to log finder activity or set tp expires to return expiration of cache with data

Todo

  • update tests and test runner
  • retrieve data timeout api
  • options for advanced requests
0.2.1

2 years ago

0.1.2

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.1

3 years ago