typescript-helper-functions

Typescript Helper Functions


Keywords
helper, helpers, functions, helper-functions, javascript, typescript
License
MIT
Install
npm install typescript-helper-functions@1.0.158

Documentation

typescript-helper-functions

Helper functions for Typescript

CI/CD codecov npm npm

Install

npm install typescript-helper-functions@latest

Usage

Base Class

Inherit from this class to get some extra functionality

public class Class1 extends BaseClass{

}

LogHelper

Helper class to log in a consistent way

const logHelper = new LogHelper(LogLevel.Trace);

logHelper.LogInputs('functionName', new { param1, param2 }());

ObjectOperations

Helper class to invoke operations on object types

const objectOperations = new ObjectOperations();

logHelper.ToString(true);

Orchestrator

Helper class to invoke operations on object types

const logger = new Logger(LogLevel.Trace);

const orchestrator = new Orchestrator(logger);

orchestrator.Orchestrate(() => {
  console.log('function');
});

Development

Clone the latest and run

npm run prep

to install packages and prep the git hooks