Skip to content

Get Started

Maintenance

We offer two different ways to import OmniUtils.

Via NPM

You can install OmniUtils via NPM by running the following command:

Terminal window
npm install @connormerk/omniutils

You can then import OmniUtils modules. For example, if you wanted to import the stringUtils module:

import { stringUtils } from '@connormerk/omniutils'

Or, you can use CommonJS:

const { stringUtils } = require('@connormerk/omniutils')

Via CDN

Alternatively, if you don’t use npm, you can import OmniUtils via CDN:

import { stringUtils } from 'https://cdn.jsdelivr.net/npm/@connormerk/omniutils@latest/index.js/+esm';

Note: Some older browsers might not support dynamically bundled modules. If you are having issues, try this instead:

import { stringUtils } from 'https://cdn.jsdelivr.net/npm/@connormerk/omniutils@latest/index.js'

That’s it! You can continue by reading the documentation for each module.