Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 725 Bytes

File metadata and controls

32 lines (26 loc) · 725 Bytes

Qwik Utilities

This package provides utility functions for Qwik framework, including CSV export, date formatting, JSON helpers, and more.

Installation

npm install qwik-utilities

Usage

CSV Export

import { downloadCSV } from 'qwik-utilities';
const data = [{ name: 'Alice', age: 25 }, { name: 'Bob', age: 30 }];
downloadCSV(data);

Date Formatting

import { formatDate, formatDateToMonthShort } from 'qwik-utilities';
formatDate('2025-08-14');
formatDateToMonthShort('2025-08-14');

JSON and Object Helpers

import { removeFalsy, duplicateObj, doesObjsMatch } from 'qwik-utilities';
removeFalsy({ a: '', b: 0, c: null });
duplicateObj({ a: 1 });
doesObjsMatch({ a: 1 }, { a: 1 });