# @foundriesio/js-utils

> Utility functions

Latest version **3.0.0** (published 2022-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @foundriesio/js-utils
pnpm add @foundriesio/js-utils
yarn add @foundriesio/js-utils
bun add @foundriesio/js-utils
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2022-11-23 |
| First published | 2022-11-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 117.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Foundries.io |
| Maintainers | stealthycoder, miloc |

## Links

- npm: https://www.npmjs.com/package/@foundriesio/js-utils
- Repository: https://github.com/foundriesio/grrr-utils
- Issues: https://github.com/foundriesio/grrr-utils/issues
- npm.io page: https://npm.io/package/@foundriesio/js-utils

## Recent versions

- 3.0.0 (latest) — 2022-11-23

## README

# Utils

[![Build Status](https://travis-ci.com/grrr-amsterdam/grrr-utils.svg?branch=master)](https://travis-ci.com/grrr-amsterdam/grrr-utils)

### JavaScript utility library

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

### Developed with ❤️ by [GRRR](https://grrr.nl)

- GRRR is a [B Corp](https://grrr.nl/en/b-corp/)
- GRRR has a [tech blog](https://grrr.tech/)
- GRRR is [hiring](https://grrr.nl/en/jobs/)
- [@GRRRTech](https://twitter.com/grrrtech) tweets

## Documentation

[View the documentation](https://github.com/grrr-amsterdam/grrr-utils/tree/master/docs) for all available functions.

## Installation

```sh
$ npm install @grrr/utils
```

Note: depending on your setup [additional configuration might be needed](https://github.com/grrr-amsterdam/grrr-utils/wiki/Usage-with-build-tools), since this package is published with untranspiled JavaScript.

## Usage

Import a function and invoke it:

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

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

Functions can also be imported from the function file itself:

```js
import closest from '@grrr/utils/functions/closest';
```

---
_Source: https://npm.io/package/@foundriesio/js-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
