ovni-utils
v0.5.1
Published
Small library with utilities.
Downloads
8
Maintainers
Readme
OvniUtils v0.5.1
OvniUtils is a small library with utilities that I regularly use in my projects. You are free to use it, collaborate or fork it.
Resources
Installation
Browser:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ovniutils.min.js"></script>
Deno:
import * as OU from 'https://esm.sh/[email protected]'
Node:
$ npm i ovni-utils
import * as OU from 'ovni-utils'
Configuration
Change language
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"