Skip to content

About

A standalone lightweight JSONP JavaScript library

Resources

Stars

100 stars

Watchers

6 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

Lightweight JSONP

Javascript Library for making JSONP requests easy.

No external dependencies except running tests/sample

Usage:

/* 
* This will make a request for the url 
* /test?otherParam1&param1=a&param2=b&callback=json{N}  where {N} is an auto incrementing counter
* and then callback your function with the response.
* Fourth parameter is if you want to override the "callback" named parameter. 
*/
JSONP.get('/test?otherParam=1', {param1:'a', param2:'b'}, function(response){
	console.log(response);
}/* , "overrideCallbackName" */);

To run the sample:

yarn
yarn start

Software delivered as is. Have fun and don't be evil.

About

A standalone lightweight JSONP JavaScript library

Resources

Stars

100 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages