1.0.3 • Published 5 years ago

@req-json/etag v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@req-json/etag

npm bundle size npm downloads license

github travis coverage

ETag middleware for req-json.

Installation

NPM

npm install @req-json/etag --save
import ReqJSON from 'req-json';
import reqJSONETag from '@req-json/etag';

const reqJSON = new ReqJSON();
reqJSON.use(reqJSONETag());

Browser

Direct <script> include window.reqJSONETag

<script src="https://cdn.jsdelivr.net/npm/@req-json/etag@1"></script>

Options

reqJSON.use(reqJSONETag({
  storage: {
    async getItem(id) {
      // ...
    },
    async setItem(id, content) {
      // ...
    }
  }
}));
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago