New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

parse-jsonp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-jsonp

Get the payload of a JSONP response.

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

parse-jsonp

Get the payload of a JSONP response in Node.js and in the browser. No fetch/AJAX logic in here.

npm version build status ISC-licensed chat on gitter support me on Patreon

Installing

npm install parse-jsonp

Usage

const {fetch} = require('fetch-ponyfill')()
const parse = require('parse-jsonp')

fetch('some-JSONP-url.js')
.then((res) => res.text())
.then((jsonp) => parse('callback', jsonp))
.then(console.log, console.error)

API

parse(hook, jsonp)

Contributing

If you have a question or have difficulties using parse-jsonp, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.

Keywords

jsonp

FAQs

Package last updated on 10 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts