@feizheng/next-gm-xhr
v1.0.7
Published
GM_xmlhttpRequest for next.
Maintainers
Readme
next-gm-xhr
GM_xmlhttpRequest for next.
installation
npm install -S @feizheng/next-gm-xhrapis
| api | params | description | | ------ | ------ | ----------- | | get | - | - | | post | - | - | | put | - | - | | delete | - | - |
usage
import NxGmXhr from '@feizheng/next-gm-xhr';
const options = { timeout: 3000, /* ... */ };
// basic usage:
NxGmXhr.get('https://api.github.com/users/afeiship').then(res=>{
console.log(res);
});resources
- https://www.tampermonkey.net/documentation.php#GM_xmlhttpRequest
license
Code released under the MIT license.
