> For the complete documentation index, see [llms.txt](https://n-f9.gitbook.io/quack.js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://n-f9.gitbook.io/quack.js/guide/using-the-utilities.md).

# Using The Utilities

Using the utilities is quite easy. All you have to do is import one namespace and you have all of the functionality you could ever wish for.

```javascript
import { QuackJSUtils } from '@n-f9/quack.js'
```

[Further documentation of the features can be found here](/quack.js/api/namespace/quackjsutils.md). An example of the utilities in action can be found below, it converts any type of color into a hexa code.

```javascript
import { QuackJSUtils } from '@n-f9/quack.js'

export default (Quack) => {
  Quack.CreateTrigger({
    name: 'color',
    trigger: /color: /g,
    execute(client, message) {
      const color = message.content.replace('color: ', '')
      try {
        const conversion = QuackJSUtils.Color(color)
        message.reply(
          QuackJSUtils.Discord.Embed({
            embeds: [
              {
                title: color,
                color: conversion,
                description: '#' + conversion.toString(16),
              },
            ],
          }),
        )
      } catch (error) {
        message.reply(
          QuackJSUtils.Discord.Embed({
            embeds: [
              {
                title: 'Ahh! An Error!',
              },
            ],
          }),
        )
      }
    },
  })
}
```
