# @darius-kiuberis/helper

> My helpers

Latest version **1.0.16** (published 2021-04-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install @darius-kiuberis/helper
pnpm add @darius-kiuberis/helper
yarn add @darius-kiuberis/helper
bun add @darius-kiuberis/helper
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.16 |
| Published | 2021-04-15 |
| First published | 2020-06-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Darius Kiuberis |
| Maintainers | darius-kiuberis |
| Keywords | helper |

## Links

- npm: https://www.npmjs.com/package/@darius-kiuberis/helper
- Repository: https://github.com/DariusKiuberis/helper
- Homepage: https://github.com/DariusKiuberis/helper#readme
- Issues: https://github.com/DariusKiuberis/helper/issues
- npm.io page: https://npm.io/package/@darius-kiuberis/helper

## Dependencies (6)

- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [dotenv](https://npm.io/package/dotenv.md) ^8.2.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [environ](https://npm.io/package/environ.md) ^3.0.3
- [cross-env](https://npm.io/package/cross-env.md) ^7.0.3
- [npm-run-all](https://npm.io/package/npm-run-all.md) ^4.1.5

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.16 (latest) — 2021-04-15
- 1.0.15 — 2021-04-01
- 1.0.14 — 2021-04-01
- 1.0.13 — 2021-04-01
- 1.0.12 — 2021-03-25
- 1.0.11 — 2020-06-22
- 1.0.10 — 2020-06-22
- 1.0.9 — 2020-06-22
- 1.0.8 — 2020-06-22
- 1.0.7 — 2020-06-22
- 1.0.6 — 2020-06-22
- 1.0.5 — 2020-06-22
- 1.0.4 — 2020-06-22
- 1.0.3 — 2020-06-22
- 1.0.2 — 2020-06-22
- … 2 more at https://npm.io/package/@darius-kiuberis/helper/versions

## README

# Helpers

Visit [https://github.com/DariusKiuberis/helper](https://github.com/DariusKiuberis/helper) for more info.<br>
Install: npm i @darius-kiuberis/helper <br>
Use: import {log, random, type} from '@darius-kiuberis/helper'

### `List of available helpers:`

#### `log(any)`

- log(anything, this, and, this)<br>
  > works like console.log, but on every log generates random color and serial number.

#### `random(type, val1, val2)`

- random('number', 30 , 200)<br>
  > returns random number between 30 and 200. Default from 1 to 99.
- random('string', 11)<br>

  > returns random string text 11 characters long. Default 5.

- random('array', 8 , 5)<br>
  > returns 8 arrays with 5 nested arrays inside and random elements. Default 3 arrays with 3 nested.

#### `type(any)`

- type(any-value)<br>
  > returns correct type of passed variable.

### Scripts overview

Husky: you can just write `git commit -m "bla bla" -n` <br>
the `-n` will get you bypass the hooks.

#### `npm run start:dev`

Starts the application in development using nodemon and ts-node to do cold reloading.

#### `npm run build`

Builds the app at build, cleaning the folder first.

#### `npm run start`

Starts the app in production by first building the project with npm run build,
and then executing the compiled JavaScript at build/index.js

### `For local development:`

- using `npm pack`:
  > ~/package-name $ `npm run build` <br>
  > ~/package-name $ `npm pack` <br>
  > ~/package-name $ `cp darius-kiuberis/helper-0.0.0.tgz ~` <br>
  > ~/workspace/some-application $ `npm install ~/darius-kiuberis/helper-0.0.0.tgz`

- using `yalc` (npm i yalc -g):
  - add: <br>
    > ~/package-name $ `npm run prod` <br>
    > ~/some-application $ `yalc add @darius-kiuberis/helper`<br>
  - update: <br>
    > ~/package-name $ `npm run prod` <br>
    > ~/some-application $ `yalc update @darius-kiuberis/helper`<br>
    > ~/some-application $ `CTRL + C && npm start`<br>
  - remove: <br>
    > ~/some-application $ `npm uninstal @darius-kiuberis/helper` <br>
    > ~/some-application $ `yalc remove @darius-kiuberis/helper` <br>

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