A JSONP library with built-in retry and localStorage caching. Version 1.0.3 (latest). Provides configurable retries on timeout, backup URLs, and optional automatic storage/retrieval of responses from localStorage with a custom validation function. Designed for browser environments where JSONP is needed (e.g., cross-domain requests). Simple API supporting callback and Promise patterns. Not actively maintained (no recent commits). Minimal dependencies.
npm install jsonp-retryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage with callback, timeout, retry, and localStorage caching with data validation.
Provide both `useStore: true` and `storeCheckKey` (a field name in your data that can serve as a cache validity check).
If you want to cache data across page loads, use `useStore` instead of `cache`.
Only use JSONP with trusted endpoints. Consider CORS or other methods instead.
Implement additional error handling using the callback error argument.
Install: npm install jsonp-retry. Import: const jsonp = require('jsonp-retry');Use: import jsonp from 'jsonp-retry'; or const jsonp = require('jsonp-retry');Increase the timeout value or ensure the server responds in time.
No dependency data recorded yet.