open-index/open-npm huggingface dataset:
npm package: @stackoverflow/stacks-utils
Description: Stack Overflow utility functions for formatting and data manipulation
Latest version: 1.0.0-beta.3

# @stackoverflow/stacks-utils

Stack Overflow utility functions for formatting and data manipulation.

## Installation

```bash
npm install @stackoverflow/stacks-utils
```

## Usage

### formatCount

Formats numbers with compact notation for large values, using lowercase k (thousands) or m (millions) suffixes.

```typescript
import { formatCount } from "@stackoverflow/stacks-utils";

// Standard format (less than 10,000)
formatCount(42); // "42"
formatCount(1000); // "1,000"
formatCount(1234); // "1,234"
formatCount(9999); // "9,999"

// Compact format (10,000 or more)
formatCount(10000); // "10k"
formatCount(12345); // "12.3k"
formatCount(1234567); // "1.2m"

// Negative numbers
formatCount(-1234); // "-1,234"
formatCount(-12345); // "-12.3k"
```

You can also import from the class:

```typescript
import { NumberFormatter } from "@stackoverflow/stacks-utils";

NumberFormatter.formatCount(42); // "42"
```

### formatTime

Formats UTC time strings into human-readable relative or absolute time formats.

```typescript
import { formatTime } from "@stackoverflow/stacks-utils";

// Within 2 days: relative time
formatTime("2026-01-15T10:00:00Z"); // "2 hours ago" (if current time is 2026-01-15T12:00:00Z)
formatTime("2026-01-15T11:30:00Z"); // "30 minutes ago"
formatTime("2026-01-14T12:00:00Z"); // "yesterday"

// Same year (beyond 2 days): short date with time
formatTime("2026-01-12T15:45:00Z"); // "Jan 12 at 15:45"

// Different year: full date with time
formatTime("2025-12-15T15:45:00Z"); // "Dec 15, 2025 at 15:45"
```

You can also import from the class:

```typescript
import { DateTimeFormatter } from "@stackoverflow/stacks-utils";

DateTimeFormatter.formatTime("2026-01-15T10:00:00Z"); // "2 hours ago"
```

## License

MIT
npm package: @stackoverfloweth/prefect-design
Description: A collection of low-level Vue components.
Latest version: 2.11.7

# Prefect Design
A collection of low-level Vue components. 

## Demo
https://prefect-design.netlify.app/

## Development
```
npm run serve
```

## Installation
```
npm i @prefecthq/prefect-design --save
```
npm package: @stackoverfloweth/vue-compositions
Description: A collection of reusable vue compositions.
Author: Craig Harshbarger
Latest version: 1.11.4

# vue-compositions

A collection of reusable vue compositions

## Installation

```bash
npm i --save @prefecthq/vue-compositions
```

## Compositions

- [useBoolean](https://github.com/prefecthq/vue-compositions/tree/main/src/useBoolean)
- [useChildrenAreWrapped](https://github.com/prefecthq/vue-compositions/tree/main/src/useChildrenAreWrapped)
- [useClickOutside](https://github.com/prefecthq/vue-compositions/tree/main/src/useClickOutside)
- [useComputedStyle](https://github.com/prefecthq/vue-compositions/tree/main/src/useComputedStyle)
- [useDebouncedRef](https://github.com/prefecthq/vue-compositions/tree/main/src/useDebouncedRef)
- [useElementRect](https://github.com/prefecthq/vue-compositions/tree/main/src/useElementRect)
- [useElementWidth](https://github.com/prefecthq/vue-compositions/tree/main/src/useElementWidth)
- [useEventListener](https://github.com/prefecthq/vue-compositions/tree/main/src/useEventListener)
- [useGlobalEventListener](https://github.com/prefecthq/vue-compositions/tree/main/src/useGlobalEventListener)
- [useIntersectionObserver](https://github.com/prefecthq/vue-compositions/tree/main/src/useIntersectionObserver)
- [useIsSame](https://github.com/prefecthq/vue-compositions/tree/main/src/useIsSame)
- [useKeyDown](https://github.com/prefecthq/vue-compositions/tree/main/src/useKeyDown)
- [useMedia](https://github.com/prefecthq/vue-compositions/tree/main/src/useMedia)
- [useMousePosition](https://github.com/prefecthq/vue-compositions/tree/main/src/useMousePosition)
- [useMutationObserver](https://github.com/prefecthq/vue-compositions/tree/main/src/useMutationObserver)
- [useNow](https://github.com/prefecthq/vue-compositions/tree/main/src/useNow)
- [usePatchRef](https://github.com/prefecthq/vue-compositions/tree/main/src/usePatchRef)
- [usePositionStickyObserver](https://github.com/prefecthq/vue-compositions/tree/main/src/usePositionStickyObserver)
- [useResizeObserver](https://github.com/prefecthq/vue-compositions/tree/main/src/useResizeObserver)
- [useRouteParam](https://github.com/prefecthq/vue-compositions/tree/main/src/useRouteParam)
- [useRouteQuery](https://github.com/prefecthq/vue-compositions/tree/main/src/useRouteQuery)
- [useRouteQueryParam](https://github.com/prefecthq/vue-compositions/tree/main/src/useRouteQueryParam)
- [useRouteQueryParams](https://github.com/prefecthq/vue-compositions/tree/main/src/useRouteQueryParams)
- [useScrollLinking](https://github.com/prefecthq/vue-compositions/tree/main/src/useScrollLinking)
- [useStorage](https://github.com/prefecthq/vue-compositions/tree/main/src/useStorage)
- [useSubscription](https://github.com/prefecthq/vue-compositions/tree/main/src/useSubscription)
- [useValidation](https://github.com/prefecthq/vue-compositions/tree/main/src/useValidation)
- [useValidationObserver](https://github.com/prefecthq/vue-compositions/tree/main/src/useValidationObserver)
- [useVisibilityObserver](https://github.com/prefecthq/vue-compositions/tree/main/src/useVisibilityObserver)