How to use the fetch-jsonp.then function in fetch-jsonp

To help you get started, we’ve selected a few fetch-jsonp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tuateam / tua-api / src / TuaApiWeb.js View on Github external
getFetchJsonpPromise ({ url, jsonpOptions }) {
        log(`Jsonp Url: ${url}`)

        return require('fetch-jsonp')(url, jsonpOptions)
            .then(res => res.json())
            .then(data => ({ data }))
    }
}

fetch-jsonp

Fetch JSONP like a boss using Fetch API

MIT
Latest version published 10 months ago

Package Health Score

64 / 100
Full package analysis

Popular fetch-jsonp functions