New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

helper-kit

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

helper-kit

HelperKit provides a robust set of utilities for managing and manipulating data and date/time values in TypeScript. With classes like DataToolkit and DateTimekit, this library simplifies common operations such as deep merging of objects, formatting and co

latest
npmnpm
Version
1.0.4
Version published
Weekly downloads
2
100%
Maintainers
0
Weekly downloads
 
Created
Source

TypeScript Utility Library

Welcome to the TypeScript Utility Library! This library provides useful functions and classes for handling common date and time operations, as well as data manipulation.

Table of Contents

  • Installation
  • Usage
  • Contributing
  • License

Installation

To install the library, use npm or yarn:

npm install helper-kit

or

yarn add helper-kit

Usage

DateTimeUtils

DateTimeUtils provides functions for common date and time operations.

Example
import { DateTimekit } from 'helper-kit';

// Create a new instance
const dateUtils = new DateTimekit();

// Check if a date is a public holiday
const isHoliday = dateUtils.isPublicHoliday(new Date(2024, 7, 25));
console.log(`Is public holiday: ${isHoliday}`);

// Format a date
const formattedDate = dateUtils.formatDate(new Date());
console.log(`Formatted Date: ${formattedDate}`);

DataUtils

DataUtils includes functions for data manipulation and transformation.

Example:

import { DataToolkit } from 'helper-kit';

// Use DataUtils methods
const dataUtils = new DataToolkit();
const mergeObjects = dataUtils.deepMerge(obj1, obj2);
console.log(mergeObjects);

Contributing

We welcome contributions to the library! To contribute:

  • Fork the repository.
  • Create a new branch (git checkout -b feature/YourFeature).
  • Make your changes.
  • Commit your changes (git commit -am 'Add new feature').
  • Push to the branch (git push origin feature/YourFeature).
  • Create a new Pull Request.

Please ensure your code adheres to our coding standards and includes appropriate tests.

License

This library is licensed under the MIT License.

FAQs

Package last updated on 28 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts