# @b613/utils

> Set of utility methods for common operations

Latest version **1.0.1** (published 2024-09-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @b613/utils
pnpm add @b613/utils
yarn add @b613/utils
bun add @b613/utils
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2024-09-09 |
| First published | 2022-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=18.16.0 |
| Dependencies | 1 |
| Unpacked size | 221.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sébastien Demanou |
| Maintainers | demsking |
| Keywords | image, promise, array, client, number, string, regex, schema, server, circular list, utils |

## Links

- npm: https://www.npmjs.com/package/@b613/utils
- Repository: https://gitlab.com/demsking/xutils
- Issues: https://gitlab.com/demsking/xutils/issues
- npm.io page: https://npm.io/package/@b613/utils

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.4.0

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2024-09-09
- 1.0.0 — 2024-09-09
- 1.0.0-beta33 — 2024-07-01
- 1.0.0-beta32 — 2024-07-01
- 1.0.0-beta30 — 2024-05-02
- 1.0.0-beta29 — 2024-05-02
- 1.0.0-beta28 — 2024-03-24
- 1.0.0-beta27 — 2024-03-24
- 1.0.0-beta26 — 2024-03-24
- 1.0.0-beta25 — 2024-03-24
- 1.0.0-beta24 — 2023-02-21
- 1.0.0-beta23 — 2023-01-11
- 1.0.0-beta22 — 2023-01-11
- 1.0.0-beta21 — 2022-07-15
- 1.0.0-beta20 — 2022-07-10
- … 36 more at https://npm.io/package/@b613/utils/versions

## README

# Common Utils

[![npm](https://img.shields.io/npm/v/@b613/utils.svg)](https://www.npmjs.com/package/@b613/utils)
[![Build status](https://gitlab.com/demsking/xutils/badges/main/pipeline.svg)](https://gitlab.com/demsking/xutils/pipelines)
[![Test coverage](https://gitlab.com/demsking/xutils/badges/main/coverage.svg)](https://gitlab.com/demsking/xutils/pipelines)
[![Buy me a beer](https://img.shields.io/badge/Buy%20me-a%20beer-1f425f.svg)](https://www.buymeacoffee.com/demsking)

This package provides utility methods for common operations which cover a wide
range of use cases and helps in avoiding writing boilerplate code.

## Install

```sh
npm install @b613/utils
```

**Install Peer Dependencies by needed modules**

| Module                | Peer Dependencies                                  |
| --------------------- | -------------------------------------------------- |
| `@b613/utils/color`   | `npm install cli-color` (only for Node.js usage)   |
| `@b613/utils/image`   | `npm install image-downloader sharp`               |
| `@b613/utils/server`  | `npm install body-parser express morgan`           |

## Libraries

| Module                | Browser | Node.js | Documentation                                                                              |
| --------------------- | ------- | ------- | ------------------------------------------------------------------------------------------ |
| `@b613/utils/array`   |    🗸    |    🗸    | [array.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/array.d.ts)               |
| `@b613/utils/clist`   |    🗸    |    🗸    | [CircularList.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/CircularList.d.ts) |
| `@b613/utils/client`  |    🗸    |    🗸    | [client.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/client.d.ts)             |
| `@b613/utils/color`   |    🗸    |    🗸    | [color.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/color.d.ts)               |
| `@b613/utils/http`    |    🗸    |    🗸    | [color.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/http.d.ts)                |
| `@b613/utils/image`   |    🗸    |    🗸    | [image.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/image.d.ts)               |
| `@b613/utils/number`  |    🗸    |    🗸    | [number.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/number.d.ts)             |
| `@b613/utils/object`  |    🗸    |    🗸    | [object.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/object.d.ts)             |
| `@b613/utils/ping`    |         |    🗸    | [ping.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/ping.d.ts)                 |
| `@b613/utils/promise` |    🗸    |    🗸    | [promise.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/promise.d.ts)           |
| `@b613/utils/qs`      |    🗸    |    🗸    | [qs.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/qs.d.ts)                     |
| `@b613/utils/regex`   |    🗸    |    🗸    | [regex.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/regex.d.ts)               |
| `@b613/utils/schema`  |    🗸    |    🗸    | [schema.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/schema.d.ts)             |
| `@b613/utils/server`  |         |    🗸    | [Server.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/server.d.ts)             |
| `@b613/utils/string`  |    🗸    |    🗸    | [string.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/string.d.ts)             |
| `@b613/utils/trace`   |    🗸    |    🗸    | [trace.d.ts](https://gitlab.com/demsking/xutils/-/blob/main/src/trace.d.ts)               |

## Development Setup

1. [Install Devbox](https://www.jetify.com/devbox/docs/installing_devbox/)

2. [Install `direnv` with your OS package manager](https://direnv.net/docs/installation.html#from-system-packages)

3. [Hook it `direnv` into your shell](https://direnv.net/docs/hook.html)

4. **Load environment**

   At the top-level of your project run:

   ```sh
   direnv allow
   ```

5. **Install dependencies**

   ```sh
   make install
   ```

6. **Start dev environment**

   ```sh
   make env
   ```

   This will starts a preconfigured Tmux session.
   Please see the [.tmuxinator.yml](.tmuxinator.yml) file.

## License

Under the MIT license.
See [LICENSE](https://gitlab.com/demsking/xutils/blob/main/LICENSE) file for
more details.

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