typescript-helper-functions
v1.0.158
Published
Typescript Helper Functions
Downloads
925
Maintainers
Readme
Helper functions for Typescript
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