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

fnclip

v2.1.0

Published

_description_

Readme

fnclip lets you copy and use only the functions you need, without installing entire libraries or worrying about dependencies.

QUICK START!

npx fnclip add pipe

This will add the pipe function to src/utils/fnclip/pipe.ts (or .js and .d.ts) and update src/utils/fnclip/index.ts to export it.

✨ Features

  1. Each single file under src/functions/ represents an independent function without any dependencies, you can copy and use it directly!
  2. Provide a convenient cli for quick access (see below).
  3. Automatically detects whether you are using JavaScript or TypeScript, but you can specify manually if needed.
  4. The cli only support nodejs currently. But you can still just copy the file you want!

🚀 Usage

To check all details, please use --help!

Now have commands add, clear, list.

npx fnclip -h
npx fnclip add -h

Adding functions

npx fnclip add pipe

This will add pipe to src/utils/fnclip/pipe.ts, and automatically add or update src/utils/fnclip/index.ts which contains export * from './pipe.ts'.

You can also use the following aliases: add, i, install.

npx fnclip i objectKeys objectMap nonNullable

This will add multiple functions to your project, which may be useful when you start a new project.

Changing target path

Add a function to a custom directory, for example:

npx fnclip add pipe --cwd packages/other --dir fnclip

About index file

This will prevent adding/updating index file.

npx fnclip add pipe --no-index

Or specify a path of index file

npx fnclip add pipe --index-path ../fnclip.js

It will specify index path in src/utils/fnclip.js instead of src/utils/fnclip/index.js

You can also omit extension and it will automatically add it for you --index-path ../fnclip

Typescript or Javascript

By default it will automatically choose ts or js. Or you can manually specify it:

npx fnclip add pipe --ts
npx fnclip add pipe --no-ts

Pre-configuration

You can use npx fnclip config to add a config file to your project:

<root>/fnclip.config.js

It looks like:

export default defineConfig({})

The option can also be a function/async function. It supports all options which cli provided.

Or just prepare for it in package.json/scripts.

{
  "scripts": {
    "fnclip:add": "npx fnclip add --no-index --ts --dir src/utils/my-fn",
    "fnclip:clear": "npx fnclip clear --dir src/utils/my-fn"
  }
}

Now you can run npm fnclip:add pipe to add functions easily.

... and more!

Please refer to npx fnclip --help npx fnclip <command> --help

npx fnclip add pipe

npx fnclip remove pipe

npx fnclip clear # remove all fnclip functions

npx fnclip list # list all installed functions
npx fnclip list --remote # list all fnclip functions

License

MIT License © 2025-PRESENT s3xysteak