New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@req-json/etag

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@req-json/etag

ETag middleware for req-json.

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

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

Keywords

req-json

FAQs

Package last updated on 18 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts