typescript-helper-functions
TypeScript icon, indicating that this package has built-in type declarations

1.0.158 • Public • Published

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

/typescript-helper-functions/

    Package Sidebar

    Install

    npm i typescript-helper-functions

    Weekly Downloads

    191

    Version

    1.0.158

    License

    MIT

    Unpacked Size

    76.4 kB

    Total Files

    36

    Last publish

    Collaborators

    • kbrashears5