JSPM

@schedule-tribe/duration

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q41191F
  • License MIT

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

Package Exports

  • @schedule-tribe/duration
  • @schedule-tribe/duration/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@schedule-tribe/duration) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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