0.2.1 • Published 1 year ago

node-data-finder v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.1.2

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.1.1

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.1

2 years ago