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

danielo-mod

v1.6.0

Published

This is a collection of [ codemods ](https://github.com/facebook/codemod) designed to blend any javascript codebase to my tyrannical desires. Codemods here will re-factor pieces of javascript code to adhere to certain programming practices that I think ar

Readme

Danielo codemods

This is a collection of codemods designed to blend any javascript codebase to my tyrannical desires. Codemods here will re-factor pieces of javascript code to adhere to certain programming practices that I think are better than others. Please check the documentation for each codemod to understand what it is supposed to do.

Executing codemods

You don't need to install this library to force your code to follow my fantastic impositions, all you need is to have npm installed and run the following command

npx danielo-mod mod-name --firstArgument=value --parser=flow your/source/code/path

If you don't use flow, just remove --parser=flow

Local execution

If you want to execute a codemod locally (you have this repo cloned and just want to run from here) you can do it providing all the required parameters to jscodeshift:

yarn jscodeshift -t src/mods/transform-file.ts /full/path/to/target-files

There is a convenience script if you want to run a typescript transformation (provides correct parser and extensions list):

yarn execute-ts -t src/mods/transform-file.ts /full/path/to/target-files

CODEMODS

named-function-params

Replace all functions (with a name) definitions and calls to take named arguments instead of positional ones. Turns:

const add = (a,b) => a + b
add(1,2)

into:

// --maxArgs=1 or --functionName=add
const add = ({ a, b }) => a + b
add({a: 1, b: 2 })

Arguments

It accepts either :

  • --functionName=name where name is the function name you want to refactor
  • --maxArgs=2 where 2 can be any number that you want to use as threshold to decide if a function needs to be refactored or not

react-to-object

Turns an array of react components into an array of Objects. This only works for literal lists of react components:

[
    <MyStuff value="hello" onClick={() => console.log('clicked')}>
]

into:

[{
    value: "hello",
    onClick: () => console.log('clicked')
}]

Arguments

It accepts:

  • --name=component_name where component name is the component you want to translate to objects

add-react-property

Adds a new react property if it does not exist previously. Useful if you want to deprecate default values, so you can add the default value to all existing invocdations.

Arguments

  • --name=component_name the name of the component you want to add properties to
  • --propName=name the name of the property you want to add
  • --propValue=value the value of the property you want to add