simple-jsonp-promise/README.md

23 lines
383 B
Markdown
Raw Permalink Normal View History

2017-08-07 12:24:25 +00:00
# simple-jsonp-promise
## Installation
``` bash
yarn add simple-jsonp-promise
```
## Example
``` bash
import jsonp from 'simple-jsonp-promise'
let options = {
params:{
a : 1,
b : 2
},
jsonp : 'callback',
prefix : '__jp',
timeout : 15000
}
let response = await jsonp('https://localhost/api.jsonp' , options);
```