# @ilabdev/utils

> Utilities for the @ilabdev compiler system

Latest version **1.0.0** (published 2023-10-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ilabdev/utils
pnpm add @ilabdev/utils
yarn add @ilabdev/utils
bun add @ilabdev/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 | 1.0.0 |
| Published | 2023-10-04 |
| First published | 2023-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Innovation Lab |
| Maintainers | apalfrey |
| Keywords | gulp, compiler, utils |

## Links

- npm: https://www.npmjs.com/package/@ilabdev/utils
- Repository: https://github.com/ilabproduction/compiler
- Homepage: https://github.com/ilabproduction/compiler#readme
- Issues: https://github.com/ilabproduction/compiler/issues
- npm.io page: https://npm.io/package/@ilabdev/utils

## Dependencies (2)

- [merge-stream](https://npm.io/package/merge-stream.md) ^2.0.0
- [@stgdp/fancy-logger](https://npm.io/package/@stgdp/fancy-logger.md) ^1.0.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2023-10-04

## README

# `@ilabdev/utils`

> Utilities for the @ilabdev compiler system

## Installation & set up

Install `@ilabdev/utils`

```shell
npm install @ilabdev/utils --save-dev

-- OR --

yarn add @ilabdev/utils --dev
```

Include `@ilabdev/utils` in your plugin

```js
const utils = require( '@ilabdev/utils' )

// OR

const {
    logger,
    stream,
    watchFiles,
} = require( '@ilabdev/utils' )
```

Use the utilities as necessary!

## Utilities

### `logger.log(string message, string color)`

A simple console log with the ability to manipulate the color. Available colors can be found here: https://github.com/stgdp/fancy-logger#available-modifiers

### `logger.error(string message)`

A simple console log that styles the text red to indicate an error

### `logger.disabled(string message)`

A simple console log that informs the user the task run has been disabled in the config

### `stream(object config, function task, function unpipe)`

Allows the user to merge streams, used when dealing with areas. `config` is the config for the task, `task` is the task itself (which receives the area and merged pipes as parameters), `unpipe` is called when each stream has completed it's operations

### `watchFiles(array areas)`

Gets the watch paths listed for each area and combines them into a single array, removing any duplicates

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