next-gm-xhr
GM_xmlhttpRequest for next.
installation
npm install -S @feizheng/next-gm-xhr
apis
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.