1.0.15 • Published 3 years ago

bluechip-utils v1.0.15

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

Bluechip Utility Package

The Why

Just a simple utility package for Javascript/TypeScript projects Hope it helps with:

  • Validation
  • Simple "me-defined" custom Exceptions

How to use

Install the package

npm install bluechip-utils

Import the set you need to use

import * as BluechipUtils from 'bluechip-utils'

or

import {BluechipValidators} from 'bluechip-utils'

or

import {validateRequiredProperty} from 'bluechip-utils'

Go head and use

try{
    validateRequiredProperty("name of key", itemTocheck);
}catch(error){
    //Handle case for exception
}

or

try{
    BluechipValidators.validateRequiredProperty("name of key", itemTocheck);
}catch(error){
    //Handle case for exception
}
1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.11

3 years ago

1.0.12

3 years ago

1.0.10

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.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago