OvniUtils is a small library with utilities that I regularly use in my projects. You are free to use it, collaborate or fork it.
Browser:
<script src="https://cdn.jsdelivr.net/npm/ovni-utils@0.5.1/dist/ovniutils.min.js"></script>
Deno:
import * as OU from 'https://esm.sh/ovni-utils@0.5.1'
Node:
$ npm i ovni-utils
import * as OU from 'ovni-utils'
Some functions can return text. You can change the language of that text by config.
OU.setConfig({ language: 'es-ES' }) // Valid languages: es-ES, en-US (default: en-US)
OU.formatTimestamp(1695371156, "dddd, mmmm dS, yyyy, h:MM:ss TT") // Return "Viernes, Septiembre 22, 2023, 10:25:56 AM"