Socket
Book a DemoInstallSign in
Socket

@schedule-tribe/duration

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@schedule-tribe/duration

Library that provides TypeScript type definitions for handling Dates in Domain-Driven Design contexts. It facilitates the validation and manipulation of Dates.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

@schedule-tribe/duration

The @schedule-tribe/duration library provides a class CPF for handling duration operations in TypeScript. It offers various methods for manipulating duration, calculating differences, formatting duration, and checking validity. This library aims to simplify duration management in Domain-Driven Design contexts.

Installation

Install rich-domain and @schedule-tribe/duration with your favorite package manager:


npm i rich-domain @schedule-tribe/duration

# OR

yarn add rich-domain @schedule-tribe/duration

Usage



import { Duration } from '@schedule-tribe/duration';

// Check if is valid value
const isValid = Duration.isValid(0);
// false


Keywords

Business Logic

FAQs

Package last updated on 05 Jun 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