/simple-jsonp-promise

Primary LanguageJavaScriptMIT LicenseMIT

simple-jsonp-promise

Installation

yarn add simple-jsonp-promise

Example

import jsonp from 'simple-jsonp-promise'
let options = {
        data: {
            a : 1,
            b : 2
        },
        jsonp : 'callback',
        prefix : '__jp',
        timeout : 15000
    }
let response = await jsonp('https://localhost/api.jsonp' , options);