Socket
Socket
Sign inDemoInstall

@grrr/utils

Package Overview
Dependencies
0
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @grrr/utils

JavaScript utility functions, by GRRR.


Version published
Weekly downloads
262
decreased by-19.88%
Maintainers
4
Install size
27.1 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 05 Dec 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc