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.mjs/+esm';

Note: OmniUtils is browser compatible, use the above code in a modern browser. If any compatibility issues are found, please file an issue on our GitHub

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