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

e621-mod-actions

v1.1.1

Published

A parser for https://e621.net/mod_actions.

Readme

E621 Mod Actions

A parser for https://e621.net/mod_actions. Do note since this is parsing html, issues should be expected. Various things such as some entries not being parsed correctly, entries being categorized as the wrong type, and more. I've made this to the best of my ability. There's some generated documentation here

Usage

This module has been built specifically with ES Modules in mind.

import E621ModActions, { ActionTypes } from "e621-mod-actions";

const e6Actions = new E621ModActions();

const actions = await e6Actions.search();

const specificAction = await e6Actions.search({ action: ActionTypes.TAG_ALIAS_CREATE });

To use this module inside of a CommonJS project, you will need to use a dynamic import. You can achieve an await within a module by using an IIFE, process.nextTick, or some other method which is already async.

(async() => {
    const { default: E621ModActions, ActionTypes } = await import("e621-mod-actions");
})();

process.nextTick(async() => {
    const { default: E621ModActions, ActionTypes } = await import("e621-mod-actions");
});

CLI Usage

This module comes with a cli counterpart to be usable in any language. To use it, install the package globally via npm i -g e621-mod-actions, then use e621-mod-actions --help to see the usage. The default format is json. You can use the --format option to change it to one of the below. | Option | Description | |:----------------:|:-------------------------------------------------------------------:| | json | JSON (Default) | | json-formatted | JSON formatted with JSON.stringify(results, null, 2) | | json-pretty | JSON formatted with util.inspect | | csv | CSV table as one document[^1] | | csv-split | CSV table with each action type as their own separate table[^1][^2] | [^1]: Nested JSON properties will be combined into the root with underscores. (e.g. user.id -> user_id) [^2]: Tables will be split by a line containing --[action_type]-- where [action_type] is the action type of the following table.

NodeJS Versions

Only 18.0.0 and above are officially supported, but some lower versions can be used with flags. Other older versions may be usable by providing a fetch pollyfill via global.fetch or the _fetch option. See below the table for the technical details required for a pollyfill. https://npm.im/node-fetch and https://npm.im/undici have both been tested and seen to work. | Node Version | Info | |:------------:|:------------------------------------:| | ^16.15.0 | With the --experimental-fetch flag | | ^17.5.0 | With the --experimental-fetch flag | | >=18.0.0 | |

At minimum, a pollyfill fetch must accept (input: string, init: { headers: Record<string, string>}) and return { status: number; statusText: string; text(): Promise<string> }.