qwik-utilities
v1.0.0
Published
A collection of utility functions and hooks for Qwik framework.
Downloads
9
Maintainers
Readme
Qwik Utilities
This package provides utility functions for Qwik framework, including CSV export, date formatting, JSON helpers, and more.
Installation
npm install qwik-utilitiesUsage
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 });