npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

parsnip-kit

v0.0.6

Published

A next-generation JS utility library, zero-dependency, with TypeScript support.

Readme

Parsnip-Kit

TypeScript Vite MIT License

Parsnip-Kit is a zero-dependency JavaScript utility library that supports TypeScript. It provides a collection of practical utility functions to help developers handle common programming tasks more efficiently.

API Document Npm

Language Versions

Installation

npm install parsnip-kit

Features

  1. 🧳 Zero Dependencies: Lightweight and efficient with no external dependencies, making it suitable for projects of any size.
  2. 🔩 Multi-functional: Supports modules such as array, object, string, type checking, asynchronous operation, function, and statistic. Adds functions that developers have been eager for.
  3. 💡 Type-friendly: Written in TypeScript, providing accurate and complete type hints to enhance the development experience and code quality.
  4. 🚀 Modern: Built with modern JavaScript APIs, it aims to provide developers with commonly used utility functions that are not yet natively supported.
  5. 📦 Modular: Supports ES6 modularization and tree-shaking.
  6. 🛠️ Easy to Maintain: Has comprehensive unit tests and coding standards, and is equipped with automated document generation and a document site project, making it easy for subsequent expansion and maintenance.

Overview

Here's an overview of the tool functions provided by Parsnip-Kit:

  • Object: For manipulating JavaScript objects, such as cloneDeep, isEqual, getByPath.
  • Array: For manipulating arrays, such as unique, intersection, lexSort and numberSort.
  • Statistic: For descriptive statistics in JavaScript, including sum, maxItem and minItem.
  • Number: For processing numbers, such as range, thousandSeparator and percent.
  • Function: Functions for handling function parameters, returns, and logic, such as: debounce, throttle, combine and curry.
  • Async: Focused on asynchronous process handling, such as concurrent, retry and asyncForEach.
  • String: String tool functions, such as camelCase, snakeCase and htmlEncode.
  • Typed: For checking the type of input parameters, including isPrimitive, isNanValue and getTypeTag.
  • Random: Generates random data, including randomNumber, randomString and randomFromArray.

Use Cases

Parsnip-Kit is designed for various JavaScript and TypeScript projects, from small tools to large applications. It aims to provide concise and efficient utility functions to save developers' time and effort.

import {
  sum,
  median,
  average,
  pairsToObject,
  leftJoin,
  getByPath,
  omit,
  pick
} from 'parsnip-kit'

const data = [
  {
    id: 13, name: 'Alice', email: '[email protected]',
    blog: { count: 15, fans: 45 }
  },
  {
    id: 18, name: 'Bob', email: '[email protected]',
    blog: { count: 55, fans: 1546 }
  },
  {
    id: 35, name: 'Carlin', email: '[email protected]',
    blog: { count: 116, fans: 56563 }
  }
]
const profile = [
  { id: 13, age: 44, nickname: 'coding neko' },
  { id: 18, age: 30, nickname: 'kurisutina' },
  { id: 35, age: 23, nickname: 'Bug Engineer' }
]

average(data, 'blog.count') // 62
sum(data, 'blog.count') // 186
median(data, 'blog.count') // 55

pairsToObject(data, 'name', 'blog.fans')
// { Alice: 45, Bob: 1546, Carlin: 56563 }

getByPath(data, '[0].email')
// '[email protected]'

omit(data[0], ['blog'])
// { id: 13, name: 'Alice', email: '[email protected]' }
pick(data[0], ['id', 'name', 'blog'])
// { id: 13, name: 'Alice', blog: { count: 15, fans: 45 } }

leftJoin(data, profile, 'id', 'id', (a, b) => ({...a, ...b}))
// [
//   {
//     id: 13, name: 'Alice', email: '[email protected]',
//     age: 30, nickname: 'kurisutina',
//     blog: { count: 15, fans: 45 }
//   },
//   {
//     id: 18, name: 'Bob', email: '[email protected]',
//     age: 30, nickname: 'kurisutina',
//     blog: { count: 55, fans: 1546 }
//   },
//   {
//     id: 35, name: 'Carlin', email: '[email protected]',
//     age: 23, nickname: 'Bug Engineer',
//     blog: { count: 116, fans: 56563 }
//   }
// ]

Documentation & Support

License

Parsnip-Kit is licensed under the MIT License. See the LICENSE file for details.


Thank you for using Parsnip-Kit!