fetch-unless-cached

v2.0.2
Store fetch JSON responses in localStorage with expire timers! And fetch only if the timer has expired.

prebuild

rimraf lib

pretty

prettier --write '{__tests__,src}/*.js'

build

babel src --out-dir lib

lint

eslint {__tests__,src}/*.js

test:only

npm run build && jest

test:watch

jest --watch

pretest

npm run build

test

npm run lint && npm run test:only

prepublish

npm run pretty && npm run test

postpublish

git push origin master --tags
npm i fetch-unless-cached

Metadata

  • MIT
  • Whatever
  • Bhargav Ponnapalli
  • released 4/2/2018

Downloads

Maintainers