Octra libraries - v2.0.0

    Module @octra/utilities - v1.1.0

    @octra/utilities npm

    This library offers JS functions and classes to make some parts of app development easier. This library is used by Octra and Octra-Backend.

    npm install --save @octra/utilities
    

    You have two options to install this package und use it as UMD:

    a) Install via NPM and reference local files (no internet connection needed on production).

    <script type="application/javascript" src="node_modules/@octra/utilities/index.umd.js"></script>
    

    b) Reference remote file (internet connection needed on production).

    <script type="application/javascript" src="https://unpkg.com/@octra/utilities/index.umd.js"></script>
    

    See full example here

    Import the classes and functions from @octra/utilities. For example

    import { getFileSize } from '@octra/utilities';
    

    All functions and classes are available via global scope OctraUtilities. For example:

    /*
    make sure that you have injected the umd bundle as described before.
    */
    const bytes = 738246364782;
    const sizeInMb = OctraUtilities.getFileSize(bytes);

    You can find more information about classes and functions of @octra/utilities here.

    Go to changelog

    Enumerations

    TsWorkerStatus

    Classes

    SerializableClass
    SubscriptionManager
    TsWorker
    TsWorkerJob

    Interfaces

    FileSize
    Serializable

    Functions

    appendURLQueryParams
    base64ToArrayBuffer
    contains
    convertDurationToUnix
    equalProperties
    escapeHtml
    escapeRegex
    extractFileNameFromURL
    filterUnique
    flatten
    getBaseHrefURL
    getFileSize
    getProperties
    getTranscriptFromIO
    hasProperty
    hasPropertyTree
    insertString
    isEmpty
    isFunction
    isNumber
    joinURL
    last
    mapFnOnObject
    popupCenter
    range
    removeEmptyProperties
    stringifyQueryParams
    unEscapeHtml
    wait
    waitTillResultRetrieved
    MMNEPVFCICPMFPCPTTAAATR