npm

Does your artifact manager get in the way? Join us on Oct. 8 at 10am PT, to discuss how npm can help.Sign up »

@req-json/etag

1.0.3 • Public • Published

@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) {
      // ...
    }
  }
}));

install

npm i @req-json/etag

Downloadsweekly downloads

11

version

1.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability