85 packages found

    It is a trap! (for a focus)

    published 2.9.1 5 months ago
    M
    Q
    P

    Wrap `require` in a try/catch block.

    published 0.0.7 7 months ago
    M
    Q
    P

    Trap focus within a DOM node.

    published 7.0.0 a month ago
    M
    Q
    P

    DOM trap for a focus

    published 0.11.3 10 days ago
    M
    Q
    P

    Parse a string as JSON.

    published 0.0.8 7 months ago
    M
    Q
    P

    If a function does not return an error, invoke a callback with the function result; otherwise, invoke a second function.

    published 0.0.7 7 months ago
    M
    Q
    P

    If a function does not return an error, invoke a callback with the function result; otherwise, invoke a callback with a value `y`.

    published 0.0.7 7 months ago
    M
    Q
    P

    Observe the object property getter, setter or method calls and add custom behavior.

    published 1.0.2 7 years ago
    M
    Q
    P

    Wrap a function in a try/catch block.

    published 0.0.8 7 months ago
    M
    Q
    P

    If a function does not throw, return the function return value; otherwise, return `y`.

    published 0.0.7 7 months ago
    M
    Q
    P

    If a function does not throw, return the function return value; otherwise, return the return value of a second function.

    published 0.0.7 7 months ago
    M
    Q
    P

    Trap focus inside specified HTML element. Vanilla JS with size <0.5kb. No dependencies. Easy to use with React, Angular or Raw Javascript

    published 1.1.0 2 years ago
    M
    Q
    P

    Trap the user's cursor within an element for nicer game controls.

    published 1.3.0 8 years ago
    M
    Q
    P

    Determines which child elements are interactive according to the WHATWG spec

    published 1.0.0 3 years ago
    M
    Q
    P

    Small shim providing `new Proxy(target, handler)`

    published 1.0.1 6 years ago
    M
    Q
    P

    A react hook to trap the focus within a reference

    published 1.1.7 22 days ago
    M
    Q
    P

    Vue component to trap the focus within a DOM element

    published 3.3.1 3 months ago
    M
    Q
    P

    A lightweight web component that traps focus within a DOM node

    published 1.0.5 3 years ago
    M
    Q
    P

    Vue3 and Vue2 directive for keyboard navigation - roving movement and trapping inside container

    published 1.0.14 5 months ago
    M
    Q
    P

    It is a trap! (for a focus)

    published 1.0.4 4 years ago
    M
    Q
    P