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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ccf

v1.0.51

Published

A simpiler, faster, more powerful compiler tool for Laravel

Readme

CCF (Compile Code Fast)

Compiles Javascript and SASS code into files that can be used in the browser

Install

You'll want to install ccf globally:

npm install ccf -g

NOTE: for this to work, you must also install SASS:

npm -g i sass

Usage

Once it's installed, just run ccf from any directory in your project that has an assets.json file!

ccf has some CLI options built into it by default. Use -h to see a list like this:

|Option|Description| |-------|-----| |-p, --production |Run in production mode.| |-j, --javascript |Only compile JavaScript code (SASS/CSS files are untouched).| |-c, --css |Only compile Sass code into Css (JavaScript files are untouched).| |-f, --force |Force a new version for all assets, even if nothing has changed.| |-i, --ignore |Ignore cached source MD5s while compiling.| |-g, --git |Add all compiled files to git automatically on completion.| |-w, --watch |Watch source files for changes after completion.| |-v, --verbose |Watch source files for changes after completion.| |-h, --help |output usage information|

You can use any number of options. For example:

ccf -fvp would start up ccf in production, verbose mode and force a version change.

You can also write your own commands using the ccfile.js as described in the "custom commands" section.

About "production"

Production turns on the following project options:

options.cssPrefix         = true;
options.compressCss       = true;
options.compressJs        = true;
options.addToGit          = true;
options.warnFilesNotSaved = true;

About "watch"

It's not advisable to use watch with production, force, ignore, or git.

It's very helpful if you are making frequent changes to some javascript files or SCSS files and you want to see the results right away.

Because of issues with working with cross-operating system file systems, there's a chance that it won't pick up your changes. Unfortunately, I don't think anything can be done about that. If you want to be sure you're running ccf, run it without watch. However, it should work 90% of the time.

Options

Here are the available options and their default values:

|Option|default| |---------|----------| |versionTarget | "./public/build/"| |jsSource | "./resources/assets/js/"| |cssSource | './resources/assets/sass/'| |revManifest | 'public/build/rev-manifest.json'| |assets | 'assets.json'| |versionSuffix | (+new Date).toString(36)| |cssPrefix | false| |compressCss | false| |compressJs | false| |compileJs | true| |compileCss | true| |addToGit | false| |onlyUpdateOnSourceChange| true| |onlyUpdateOnResultChange| true // basically no reason to turn this off| |deleteOldBuildFiles | true| |runOnFileChange | false| |warnFilesNotSaved | false // warn me every time a file is not saved for any reason| |filesToScanForChanges | ["resources/assets/js/", "resources/assets/sass/", "assets.json"],| |md5cacheFile | ""| |autoPrefixerOptions | {browsers : ['last 2 versions'], cascade: false}| |uglifyOptions | { warnings : false, /* setting this to true is quite verbose.../toplevel : true,output : {code: true / MUST be true, or the code doesn't get outputted. (which would be useless)/}sourceMap: {} / this is populated automatically, leave blank. If you don't want source maps, delete this line.*/}/https://www.npmjs.com/package/uglify-js#minify-options,/}; |commands|[]| |disableDefaultCommands|false|

Any of these options can be overridden by placing a ccfile.js file in the project root directory, and exporting an options variable (see ccfile-example.js for an example)

Custom Commands

You can use the option.commands to create custom CLI options for your project. (see "options" about setting project options)

option.commands is an array of objects that look like this:

{
    name: "demoCommand",
    short: "d", // optional, uses the first letter of "name" if not given here. 
    description: "does the same thing as 'watch'", 
    callback: function(options) {
        options.runOnFileChange = true;
    }
}

You can use these custom commands to set custom option sets you frequently use.

License

ISC