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

lessby

v1.3.4

Published

yep, another less compiler

Downloads

17

Readme

lessby

lessby is a simple CLI tool for compiling .less file.

Example

Installation

npm i lessby -D

Usage

Usage: lessby [options]

Options:
  -i, --input <folder>   input less folder
  -o, --output <folder>  output less folder
  -e, --extension <ext>  output file extension, eg. ' -e wxss '
  -b, --initial-build    compile less files before watch
  -r, --recursive        compile less files recursively
  -m, --minify           minify output file
  -s, --source-map       generate source map files
  --source-map-inline    generate inline source map files
  --one-time             compile less files ony once
  --mid-name <str>       specify output file middle name, eg. ' --mid-name min '
  --less-options <str>   specify original less-cli options, eg. ' --less-options "-l --no-color" '
  -h, --help             display help for command

-i, --input

required

Normally, lessby will watch all the .less files inside the input folder, this action is non-recursive.

lessby -i <folder_name>

-o, --output

lessby will output the .css files into the folder that you specified.

lessby -i <folder_name> -o <output_foler_name>

-e, --extension

Seriously, it's not just CSS out there.

This will compile all the less files into CSS files with .wxss extension. You can use whatever extension you want.

lessby -i <folder_name> -e wxss

-b, --initial-build

compile all the .less files once before watch

lessby -i <folder_name> -b

-r, --recursive

FINALLY!!!

A less compiler with recursive option!

lessby -i src -r

If src/ has a sub-folder, and it contains .less files, lessby will find it, and compile it.

-m, --minify

As mentioned above, this parameter minifies output files.

lessby -i src -r -m

-s, --source-map

lessby will generate source map files, those little things are helpful when in development.

lessby -i src -s

--source-map-inline

lessby will generate inline source map, this will overwrite the -s option

lessby -i src -s

--one-time

lessby will compile all the .less files only once, could be used in building stage.

lessby -i src --one-time

--mid-name

Script below will compile all the .less files from xxx.less to xxx.min.css.

lessby -i <folder_name> -m --mid-name min

Since file extension names are customizable, I think I'll make the middle name part customizable too, you can compile non-minified files with the name min in the middle, even if it is not recommended, but hey! Here we are!

--less-options

And finally, the original lessc options.

Since this is a npm pack based on lessc, So I think it'll be good in case you need something I didn't cover.