🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

fetch-abort

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-abort

fetch、abort

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

fetch-abort

为web端fetch添加阻断功能(fetch-abort)

安装(install)

npm i fetch-abort --save

使用(use)

require('fetch-abor');

//es
import 'fetch-abort';

abort

	let demo = fetch('/api');
demo.abort()// 针对demo阻断(only demo abort)

fetch.abort(abortNum=10)//所有阻断(all abort)

Community

github npm

Keywords

fetch、abort

FAQs

Package last updated on 21 Oct 2018

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