@grrr/utils

2.5.1 • Public • Published

Utils

CI

JavaScript utility library

  • No dependencies
  • Includes functional and DOM utility functions
  • Lightweight and untranspiled

Developed with ❤️ by GRRR

Installation

$ npm install @grrr/utils

Note: depending on your setup additional configuration might be needed, since this package is published with untranspiled JavaScript.

Usage

Import a function and invoke it:

import { closest } from '@grrr/utils';

const findParentFoo = closest(el => el.hasAttribute(`data-foo`));

Functions can also be imported from the function file itself:

import closest from '@grrr/utils/functions/closest.mjs';

Documentation

View the documentation for all functions and examples of their usage.

Objects & Arrays

Functional

DOM & Browser

Miscellaneous

Dependencies (0)

    Dev Dependencies (10)

    Package Sidebar

    Install

    npm i @grrr/utils

    Weekly Downloads

    206

    Version

    2.5.1

    License

    MIT

    Unpacked Size

    27.7 kB

    Total Files

    47

    Last publish

    Collaborators

    • nick.meijer
    • roelandvs
    • harmenjanssen
    • ramirohammen
    • martijnnieuwenhuizen