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

jmen

v0.7.2

Published

watch javascript(coffeescript) and css(scss, less) files, merge them into one file whenever one of the watched files is updated.

Downloads

5

Readme

Introduction

jmen is a tool can merge javascript (including coffeescript) and css (including scss, less) files into one file whenever one of the included files is updated. To make it works, you need to install nodejs(http://www.nodejs.org/) first.

Installation

$ [sudo] npm install jmen -g

Usage

$ jmen --file /path/to/app/dev/index.js --output /path/to/website/assets/javascripts/app.js

file: /path/to/app/dev/index.js

    //= require "dev/a.js"
    //= require "dev/b.js"

Compress generated code

$ jmen --file js/index.js --output web/compiled/main.js --compress

Mixing JavaScript and CoffeeScript

file: js/main.js

    //= require "a.js"
    //= require "my/first.coffee"
    // ....

file: my/first.coffee

    #= require "second.coffee"
    # 
    # other coffee code here

The files structure looks like:

js/
  main.js
  a.js
  my/
    first.coffee
    second.coffee

Then, you can do it with jmen:

$ jmen --file js/main.js --output result.js

Working with less files

$ jmen -f less/index.scss -o css/app.css

file: less/index.scss

  //= require "header.less"
  //= require "bottom.less"
  // others ...

Working with scss files

$ jmen -f scss/index.scss -o css/app.css

file: scss/index.scss

  //= require "header.scss"
  //= require "bottom.scss"
  // others ...

Notice

Included files can be added onto top only !!!

Run once and quit

If you just need to generate or compress your css/js files once, just do it with the --run-once(-r) option, e.g.:

$ jmen -f index.js -o compiled.js -c -r

help

$ jmen --help

Latest Version

0.7.2

TODO

Test

It's similar to the Ruby's sprockets (http://www.getsprockets.org) gem.