New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@gentleduck/libs

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gentleduck/libs

Tiny, framework-agnostic utility functions for gentleduck/ui.

latest
Source
npmnpm
Version
0.1.16
Version published
Maintainers
1
Created
Source

@gentleduck/libs

A collection of tiny, framework-agnostic utilities. Each utility lives in its own folder and can be imported individually or all together.

Installation

npm install @gentleduck/libs

or with yarn:

yarn add @gentleduck/libs

Available Utilities

  • cn - Utility for conditional className merging.
  • filtered-object - Create a new object with only selected keys or values.
  • group-array - Group array items by a given key or function.
  • group-data-by-numbers - Group numbers into ranges or buckets.
  • parse-date - Parse strings or values into valid Date objects.

Usage

import { cn } from '@gentleduck/libs'

function MyComponent({ active }: { active: boolean }) {
  return <div className={cn('base', active && 'active')} />
}

License

MIT (c) gentleduck

Keywords

gentleduck

FAQs

Package last updated on 14 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts