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

tiny.compiled

v1.0.8

Published

[![Build Status](https://travis-ci.org/xuewuli/tiny.compiled.svg?branch=master)](https://travis-ci.org/xuewuli/tiny.compiled) [![codebeat badge](https://codebeat.co/badges/3b9ee9b9-5bd1-4152-822d-4a06e5fe1b71)](https://codebeat.co/projects/github-com-xuew

Readme

tiny.compiled

Build Status codebeat badge Dependency Status

一个可以将js文件编译成v8 codecache并保存成jsc的工具。

对于复杂项目可以加快启动速度(待验证),删除原js仅保留jsc可实现混淆的目的。

不同v8版本的codecache会不兼容,请确保编译和运行的node版本一致。

使用方法

编译时需关闭v8的lazy compile,不然无法得到完整的codecache。

通过node--nolazy参数可禁用lazy compile

运行编译出来的jsc需要指定同等的参数,各种nodecli也有对应的方法将参数传递给node

如:

  • mocha --v8-nolazy
  • pm2 --node-args="--nolazy"

安装

  npm i tiny.compiled

编译js

jsc *.js  # use glob pattern

会在同位置生成后缀为jsc的二进制缓存文件

清空js

js-erase *.js  # use glob pattern

️️⚠️危险⚠️操作,务必确认原js文件已经提交备份

代码引用

在应用启动的地方加上以下代码。

require('tiny.compiled');

之后的require在加载新文件时会尝试检查是否有对应的jsc文件存在,有则加载jsc,无则加载原文件。