autorq

1.1.3 • Public • Published

autorq

自动请求工具

简介

按周期执行请求,暂时只支持get/post

安装

npm i autorq  ||  cnpm i autorq  ||  pnpm i autorq

使用

	import autorq from 'autorq';

	autorq( [ { method: 'get', url:"https://xxxx", data:{}, time:1000 }, ] );

	// 带日志
	autorq([ { method: 'get', url:"https://xxxx", data:{}, time:1000,name:'x请求' }, ], (cnt, name) => {
        console.log(`第${++cnt}次执行:${name}`);
    });

Package Sidebar

Install

npm i autorq

Weekly Downloads

1

Version

1.1.3

License

MIT

Unpacked Size

11 kB

Total Files

4

Last publish

Collaborators

  • it_yuanying