0.2.1 • Published 3 years ago
node-data-finder v0.2.1
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