Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/firstandthird/jsonp
Quick way to create a JSONP request
https://github.com/firstandthird/jsonp
Last synced: 14 days ago
JSON representation
Quick way to create a JSONP request
- Host: GitHub
- URL: https://github.com/firstandthird/jsonp
- Owner: firstandthird
- License: mit
- Created: 2017-02-07T10:44:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T02:22:59.000Z (about 2 years ago)
- Last Synced: 2025-01-11T14:37:24.183Z (22 days ago)
- Language: JavaScript
- Size: 1.1 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 13
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# JSONP
[![Build Status](https://travis-ci.org/firstandthird/jsonp.svg?branch=master)](https://travis-ci.org/firstandthird/jsonp)
![npm](https://img.shields.io/npm/v/@firstandthird/jsonp.svg)Quick and easy JSONP.
## Installation
```sh
npm install @firstandthird/jsonp
```## Usage
```js
import jsonp from '@firstandthird/jsonp';jsonp('https://some-url.io', () => {
// It finished
}, 'cb');// https://some-url.io?cb=jsonp_125149012 will be queried
```