1.0.0 • Published 7 years ago

cross-jsonp v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

jsonp

Can be used to solve the mainstream browser cross domain data access problems

how to use it

npm install cross-jsonp --save-dev
import getJsonpData from 'cross-jsonp';
getJsonpData(url,data).then(response=>{
    console.log(response);
})

params

namedescription
url(String) url to fetch
dataname of the query string parameter to
timeout(Number) how long after a timeout error is emitted. 0 to disable (defaults to 10000)
callbackName(String) name of the global callback functions that handle jsonp responses
1.0.0

7 years ago

0.0.0

7 years ago