Skip to content

Small library with utilities

License

Notifications You must be signed in to change notification settings

ovniroto/ovni-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OvniUtils v0.5.1

GitHub issues tag GitHub commit activity (branch) GitHub License FOSSA Status

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/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'

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"