jsonp-p
jsonp promisify wrapper.
Getting started
npm i jsonp-p
Usage
jsonpP(url, config, ...queryParams);
import jsonpP from 'jsonp-p';
const jsonpConfig = {
timeout: 60000,
prefix: '__jp',
name:
};
jsonpP(url, jsonpConfig, ...restParams)
.then(response => {})
.catch(error => {});
Promise is required
Contributing
- Fork it!
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request :D
License
MIT
© sugarshin