Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@onirix/extras-module

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onirix/extras-module

Onirix extras module.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
54
increased by80%
Maintainers
1
Weekly downloads
 
Created
Source

Onirix Extras Module

This library includes several utility functions for Onirix experiences.

Usage

Initialization

import OnirixExtrasModule from "https://www.unpkg.com/@onirix/extras-module@latest/dist/ox-extras-module.esm.js"

const oxExtras = new OnirixExtrasModule();

Load Onirix splash screen

Onirix splash screen can be loaded by calling the following async function:

await oxExtras.loadSplashScreen();

// Init code for your experience ...

Internationalization

If you want to translate the strings, you can pass an object to the loadSplashScreen method, with the following keys and their associated translation:

  • madeWith
  • footer
  • experienceLibrary

Example for Spanish:

await oxExtras.loadSplashScreen(
    {
        "madeWith": "Desarrollado con",
        "footer": "Echa un vistazo a otros ejemplos accediendo a la ",
        "experienceLibrary": "Librería de experiencias"
    }
);

FAQs

Package last updated on 20 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc