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 🙏

© 2024 – Pkg Stats / Ryan Hefner

cutepack

v0.1.1

Published

a simple compression and package module

Downloads

6

Readme

cutepack

功能简单的JS打包工具

  • 简介

把多个JS文件,压缩并依次打包进一个JS文件,压缩采用uglify-js引擎,多个模块文件打包到一个文件里,减少http请求消耗 :)

  • 安装

npm install cutepack -g (未发布,暂不可用 -^-)

  • 使用

直接把源码down下来,依据/test目录下的build.js,修改‘paths’数组为自己相应的需要打包的文件路径,命令行运行node build.js,打包完成,生成build文件。

  • 局限性

    1、只支持同一磁盘文件,相对路径形式,非http等线上文件。

    2、不支持css文件压缩打包,不支持整个目录打包输出。

    3、仅支持压缩打包多个指定的JS文件到一个文件中,满足最简单实用的需求。

    4、默认处理的文件并非特大文件,不会造成读写大文件导致内存溢出。

    5、没有处理常见的模块依赖。

  • change log

    build.js中增加options配置项,可指定压缩时不改变某些关键词,转义非ASCII字符为\uXXXX字符形式。 2012-10-29

    可配置参数-n,不压缩某文件(例如已经压缩过的文件,不需要重复压缩) 2012-10-26

    最初功能实现 2012-10-22