Get started with omniscient CDN

MIT licensed

An omniscient library is a collection of tools that claims to have complete knowledge or ability to handle all aspects of a JS project. Examples include libraries like React with its extensive component library and data handling capabilities.

Tags:
  • quiescent
  • react
  • immutable
  • unidirectional flow
  • omniscient
  • cursors
  • components

Stable version

Copied!

How to start using omniscient CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with omniscient CDN - cdnhub.io</title>
    <script src="https://cdn.cdnhub.io/omniscient/4.2.0/omniscient.min.js"></script>
</head>
<body>
    <button id="fetchData">Fetch Data</button>
    <div id="output"></div>

    <script>
        const output = document.getElementById('output');
        const button = document.getElementById('fetchData');

        button.addEventListener('click', () => {
            OM.get('https://jsonplaceholder.typicode.com/todos/1')
                .then(data => {
                    output.innerHTML = `<pre>${JSON.stringify(data, null, 2)}</pre>`;
                })
                .catch(error => {
                    output.innerHTML = `<pre>${error.message}</pre>`;
                });
        });
    </script>
</body>
</html>
Copied!
Copied!

All versions