Skip to content

Emily90/axios-jsonp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A jsonp adapter for axios

support promise,support cancel,same as xhr

install

npm install axios-jsonp

usage

let axios = require('axios');
let jsonpAdapter = require('axios-jsonp');

axios({
    url: '/jsonp',
    adapter: jsonpAdapter,
    callbackParamName: 'c' // optional, 'callback' by default
}).then((res) => {

});

About

A jsonp adapter for axios

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%