Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@odx/assets-utils

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@odx/assets-utils

A library to build assets for ODX

npmnpm
Version
1.3.1
Version published
Maintainers
3
Created
Source

@odx/assets-utils

The @odx/assets-utils library provides utility functions and classes for managing and rendering assets in the ODX ecosystem.

Installation

To install the library, use npm or yarn:

npm install @odx/assets-utils

Usage

Importing the Library

To use the utilities provided by @odx/assets-utils, import the necessary functions or classes:

import { OdxAssetElement } from '@odx/assets-utils';

Example

Here's an example of how to create a custom asset element:

import { OdxAssetElement, registerAssetElement } from '@odx/assets-utils';

class CustomAssetElement extends OdxAssetElement {
  readonly namespace = 'custom';
  readonly defaultSet = 'default';
}

registerAssetElement('custom-asset', CustomAssetElement);

FAQs

Package last updated on 01 May 2025

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