1.0.49 • Published 6 months ago

@stevenkellner/typescript-common-functionality v1.0.49

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

TypeScript Common Functionality

This repository contains common Typescript functionality that I use regularly. It includes various utilities, types, and classes to facilitate development in Typescript.

Table of Contents

Installation

To install the package, use npm:

npm install @stevenkellner/typescript-common-functionality

Usage

Import the necessary modules and use them in your TypeScript project:

import { UtcDate, Result, Logger } from '@stevenkellner/typescript-common-functionality';

// Example usage
const date = UtcDate.now;
const result = Result.success('Operation successful');
const logger = new Logger();
logger.info('ExampleFunction', 'This is an info message');

Features

  • Utilities: Various utility functions for common tasks.
  • Types: Commonly used TypeScript types and interfaces.
  • Logger: A simple logger for logging messages with different levels.
  • Crypter: Encryption and decryption utilities.
  • Padding: Padding utilities for cryptographic operations.
  • Hasher: Hashing utilities.
  • Message Authenticator: HMAC and other message authentication utilities.
  • Bytes Coder: Encoding and decoding utilities for bytes.

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

Continuous Integration

Build, Test and Lint

Build, test and lint Node.js Package

On each push and pull request, the CI runs the build, test and lint script to verify the package.

Coverage Report

Run Test with Coverage Report and upload it to Github Pages

The coverage report is generated automatically by the CI on each push and pull request. You can view the latest coverage report here.

Publish to npm

Publish Node.js Package

The library is published automatically as a npm package and a github release is created by the CI on each new release tag. The npm package can be found here, you can install it with npm install @stevenkellner/typescript-common-functionality.

License

This project is licensed under the MIT License. See the LICENSE file for details.

1.0.49

6 months ago

1.0.48

6 months ago

1.0.47

6 months ago

1.0.46

6 months ago

1.0.45

6 months ago

1.0.44

6 months ago

1.0.43

6 months ago

1.0.42

6 months ago

1.0.41

6 months ago

1.0.40

6 months ago

1.0.39

6 months ago

1.0.38

6 months ago

1.0.37

6 months ago

1.0.36

6 months ago

1.0.35

6 months ago

1.0.34

6 months ago

1.0.23

6 months ago

1.0.22

6 months ago

1.0.21

6 months ago

1.0.20

6 months ago

1.0.19

6 months ago

1.0.18

6 months ago

1.0.17

6 months ago

1.0.16

6 months ago

1.0.15

6 months ago

1.0.14

6 months ago

1.0.12

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago