@publishfx/publish-utils
v1.2.0
Published
Utility functions for the Publish platform.
Readme
Publish Utils Library
Utility functions for the Publish platform.
Overview
This package contains utility functions and helpers used across the Publish platform. These utilities cover common tasks such as data processing, time range calculations, and other shared logic.
Setup
Install the dependencies:
pnpm installDevelopment
Build the library:
pnpm buildBuild the library in watch mode for development:
pnpm devUtilities
getDrillDownTimeRange
A function for calculating time ranges for drill-down analysis.
import { getDrillDownTimeRange } from '@moonton/publish-utils';
const timeRange = getDrillDownTimeRange(startDate, endDate);Adding New Utilities
- Create your utility function in the
srcdirectory - Export it in
src/index.ts - Document its usage in this README
Build Output
The library is compiled to ESM format and outputs type definitions. The built files are located in the dist directory.
