1.0.7 • Published 5 years ago
@feizheng/next-gm-xhr v1.0.7
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
license
Code released under the MIT license.