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

hotfunctionsmanager

v0.0.5

Published

This module provides a class that reads a given directory in order to parse files supposed to contain javascript functions. Then, the object parses and evaluates all those functions, making them available for the developer. Also, the developer can, through this object, add functions will the process is running, and the added functions can be written to the filesystem also.

Readme

Hot Functions Manager

This module aims to read all files of a given directory in order to parse their content, supposed to be JavaScript functions. After being parsed, those functions will be available through a defined interface.

Installation

This module is available on NPM:

$ npm install hotfunctionsmanager

How does it work ?

This module reads a given directory's files and evaluate their content. This content MUST be anonymous Javascript function. Those functions will be then available through a id-function interface, where the id of a function is its filename without extension.

For example, if there's a file "hello.js" that contains:

function () {
    console.log("Hello world!");
}

Then, the id of the function will be "hello".

It's on your own to write your functions with a correct syntax, unless the module will crash !

How to use

Let's consider that you have a directory "myDirectory", that contains two files: "hello.js" and "goodbye.js". So, you can do the following:

var HotFunctionsManager = require("hotFunctionsManager");
// Construct your object
var myFunctions = new HotFunctionsManager("./myDirectory");

// Here, our object has been built, but our folder hasn't beed read yet
// This is triggered by the call of the init() method.
// Why ? Because, reading files involves I/O operations that may impact
// considerably your application's performances. Please, consider it.
myFunctions.init();

// And now, you can call your functions
myFunctions.getFunction("hello")();

API

Please, check this folder for the API.

Notes

Hot addition of functions is on the way ;-)