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

ereqt

v0.0.1

Published

Extended REQuire of Typescript

Readme

ereqt

Enhanced REQquire of Typescript

Allows you to use all bleeding edge typescript features - for which only ES6 target is available - in nodejs, keeping the source map debugging support.

When you require a .ts file, it is transpiled on the fly and cached to keep resonable performace.

The first compilation step is through TypeScript (with tsconfig.json support) targetting ES6. Second compilation step is through Babel (with .babelrc support) As a third step, the results are ran through sorcery which maps the last source map in the chain to the original source file.

installation

npm install --save-dev ereqt

or just

npm i -D ereqt

usage

This is somewhat complicated due to the current state of debuggers in the wild.

Debugging is only confirmed working on Visual Studio 2015 Community (RC and above) with iojs or nodejs v4.0.0 .

  • create new .ts file eg.: dev.ts with the following contents:

    require('ereqt/register');
    setTimeout(function() {		// should fix a bug which causes all breakpoints being ignored in synchronous code on startup
    	require('./index'); 	// update to the actual application antry point
    }, 200);
  • set it as an application entry point in your IDE ("Set as Node.js Startup File" in VS)

  • create .ereqt.json in your project root:

    {
    	"cacheDir": ".cache"
    }

    Everytime a typescript file is required, this file is looked up upwards in the file system tree starting in the location of the required file. If the file is not found, you'll get a warning and the resulting file will have to be recompiled the next time program runs. The resulting source map will be inlined, but the debugging might not work anyway.

  • set breakpoints and start debugging :)

Note: Production use is not recommended.

Contribute

I'm currently looking for ways to enable the debugging support in other IDEs. Any ideas are welcome. If you find a way to make it work in other IDEs/debuggers (code, IntelliJ IDEA, WebStorm, node-inspector, iron-node, etc.), please submit an issue or pull request.

Current version is far from feature complete, so please submit an issue with your ideas.

Recommendation

Blacklist regenerator in your .babelrc - node supports generators for quite some time now and it makes debugging of async functions much easier