node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey ยป

@nodeswork/utils

@nodeswork/utils

Utilities used across nodeswork repos.

Installation

npm install --save @nodeswork/utils

Key Components

Index Component Description
1 Error Basic Error class
2 Validator Validate object fields
3 Validator2 Validate object fields
4 Http Handler Utility functions for handling HTTP requests
5 Utility Functions Some other basic utility functions

Error Class

constructor

Param Required Type Description
message required string
meta default: {} ErrorMeta
cause default: null Error or any any