Have ideas to improve npm?Join in the discussion! »

    @splunk/ui-utils

    1.3.0 • Public • Published

    @splunk/ui-utils

    A library of common UI utilities.

    Install

    npm install @splunk/ui-utils
    

    Usage

    Individual functions can be imported from several named modules.

    Boolean example:

    import { normalizeBoolean } from '@splunk/ui-utils/boolean';

    Cookie example:

    import { getEntry } from '@splunk/ui-utils/cookie';

    Filter example:

    import { filterByKeywords } from '@splunk/ui-utils/filter';

    Focus example:

    import { takeFocus } from '@splunk/ui-utils/focus';

    Format example:

    import { smartTrim } from '@splunk/ui-utils/format';

    Id example:

    import { createDOMID } from '@splunk/ui-utils/id';

    Internationalization example:

    import { _ } from '@splunk/ui-utils/i18n';

    Keyboard example:

    import { isNumber } from '@splunk/ui-utils/keyboard';

    Math example:

    import { strictParseFloat } from '@splunk/ui-utils/math';

    Style example:

    import { toClassName } from '@splunk/ui-utils/style';

    User Agent example:

    import { isIE11 } from '@splunk/ui-utils/userAgent';

    Keywords

    none

    Install

    npm i @splunk/ui-utils

    DownloadsWeekly Downloads

    241

    Version

    1.3.0

    License

    Apache-2.0

    Unpacked Size

    68.8 kB

    Total Files

    18

    Last publish

    Collaborators

    • avatar
    • avatar