1.0.16 • Published 3 years ago

@darius-kiuberis/helper v1.0.16

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Helpers

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

List of available helpers:

log(any)

  • log(anything, this, and, this)

    works like console.log, but on every log generates random color and serial number.

random(type, val1, val2)

  • random('number', 30 , 200)

    returns random number between 30 and 200. Default from 1 to 99.

  • random('string', 11)

    returns random string text 11 characters long. Default 5.

  • random('array', 8 , 5)

    returns 8 arrays with 5 nested arrays inside and random elements. Default 3 arrays with 3 nested.

type(any)

  • type(any-value)

    returns correct type of passed variable.

Scripts overview

Husky: you can just write git commit -m "bla bla" -n 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 ~/package-name $ npm pack ~/package-name $ cp darius-kiuberis/helper-0.0.0.tgz ~ ~/workspace/some-application $ npm install ~/darius-kiuberis/helper-0.0.0.tgz

  • using yalc (npm i yalc -g):

    • add:

      ~/package-name $ npm run prod ~/some-application $ yalc add @darius-kiuberis/helper

    • update:

      ~/package-name $ npm run prod ~/some-application $ yalc update @darius-kiuberis/helper ~/some-application $ CTRL + C && npm start

    • remove:

      ~/some-application $ npm uninstal @darius-kiuberis/helper ~/some-application $ yalc remove @darius-kiuberis/helper

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.2

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago