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

m-require

v0.0.1

Published

require Time Check.

Downloads

10

Readme

m-require

gulpfileとか大量にrequireしていると重くなりますね。
requireにかかる時間を確認できるようになります。
requireの問題特定にお使いください。

インストール - Install

$ npm i -S m-require

使い方 - Usage

Node.js

var M = require('m-require');
// M.setWidth(15); <- Option
// M.setText("(-"); <- Option
var browserify = M.require('browserify');
var express = M.require('express');
var pm2 = M.require('pm2');
var karma = M.require('karma');
var bower = M.require('bower');
var cordova = M.require('cordova');
var gulp = M.require('gulp');
var grunt = M.require('grunt');
var jade = M.require('jade');
var forever = M.require('forever');
var less = M.require('less');
var sass = M.require('sass');
var stylus = M.require('stylus');

output "Default"

# node example.js
browserify                               require's time: 214ms
express                                  require's time: 81ms
pm2                                      require's time: 154ms
karma                                    require's time: 623ms
bower                                    require's time: 220ms
cordova                                  require's time: 178ms
gulp                                     require's time: 180ms
grunt                                    require's time: 143ms
jade                                     require's time: 261ms
forever                                  require's time: 294ms
less                                     require's time: 80ms
sass                                     require's time: 1ms
stylus                                   require's time: 78ms

output "Use Option Sample"

# node example.js
browserify      (-: 249ms
express         (-: 82ms
pm2             (-: 171ms
karma           (-: 610ms
bower           (-: 221ms
cordova         (-: 188ms
gulp            (-: 188ms
grunt           (-: 148ms
jade            (-: 248ms
forever         (-: 318ms
less            (-: 81ms
sass            (-: 1ms
stylus          (-: 79ms  

ライセンス - License

MIT License

作者 - Author