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-asset-pipeline

v1.4.2

Published

tiny-asset-pipeline is a node library for compiling and serving web assets. It features dependency management for JavaScript and CSS assets, as well as Less.

Downloads

197

Readme

tiny-asset-pipeline

tiny-asset-pipeline is a node library for compiling and serving web assets. It features dependency management for JavaScript and CSS assets, as well as Less. It's suitable for multi-page applications. Forget Grunt and Gulp,forge configuration.

Install:

npm install -g tiny-asset-pipeline

Run tests:

npm test

Features:

  1. Dependency management for Less(or CSS): support mixture @import of .css and .less. All *.css file is processed same as Less file(merge all @import recursively, compile it by lessc). It use the latest(v2.3.1) Less.js.
  2. Dependency management for JavaScript: using require("../subDir/foo.js") to require foo.js. Note it's not a CMD or AMD package manager, it just loads/merge the required Javascript file. Now It is a super simple commonjs package loader(although you can't compare it to browserify or webpack) since version 1.3.7 ! It use UglifyJS to process the javascripts.
  3. It integrated with autoprefixer. So you can write your CSS rules without vendor prefixes (in fact, forget about them entirely).
  4. Note: both require(for js) and @import(for css and less) are using relative path, such as @import ../plugin/foo.css. Images and fonts also use relative path.
  5. It will rename asset(append md5 hash to name,such as foo-1d5a631226eed334.js).
  6. All other assets except js/css/less, such as images and fonts, are copied and renamed to deploy directoty. All reference urls of images and fonts in the .less/.css are renamed automatically(such as url(icon-update-3da2da84f7287796.png)).
  7. A md5_mapping.json will be generated under the root of destination directoty, you can set the -mappingFile option to config the file path and name.

Tips:

  1. All *.js , *.less * and *.css will be processed.
  2. For partials files: any file(or directory) start with _ or . will be ignorged(does not been processed), such as _sub.js or _partial.less or _child.css or _foobar_directory/.

usage:

  1. For development environment , start server(as assets pipeline server, compile .less, concat .css and .js per request ): tiny-asset-pipeline -start [-port 8888] [-root yourAssetsRoot]
  2. For production environment , batch process before deploy assets to production env : tiny-asset-pipeline -from sourceDir -to destinationDir [-verbose or -v] . Finally it will generate a md5_mapping.json under the root of destination directoty, you can read the content to find the md5 hash of a special file.

Why not Grunt or Gulp?

  1. Because I hate to write many configuration.