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

lesses

v0.2.0

Published

Useful less mixin

Readme

lesses

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][downloads-url] [![Dependency Status][david-image]][david-url] [npm-image]: https://img.shields.io/npm/v/lesses.svg?style=flat-square [npm-url]: https://npmjs.org/package/lesses [downloads-image]: http://img.shields.io/npm/dm/lesses.svg?style=flat-square [downloads-url]: https://npmjs.org/package/lesses [david-image]: http://img.shields.io/david/chunpu/lesses.svg?style=flat-square [david-url]: https://david-dm.org/chunpu/lesses

Useful less mixin

Installation

npm i lesses

Usage

Only use the mixin less

@import "mixin/all";

Also use the ripe less by class

@import "ripe/all";

Check the example page

Mixin

util

  • .clearfix
  • .size(width[, height])
  • .color(color[, background-color])
  • .color-reverse(color[, background-color])
  • .opacity(value)
  • .border(color[, border-radius]) border always use 1px solid @color

grid

TODO

gradient

  • .horizontal(start, end) end default equals to start
  • .vertical(start, end)
  • .reset-filter only need when reset old ie

position

  • .center horizontal center
  • .middle(height) vertical middle, but it needs a height

text

  • .text-size(font-size[, line-height: 1])
  • .text-line(line-height[, count: 1]) limit text lines
  • .text-left
  • .text-right
  • .text-center

shadow

  • .shadow([value])
  • .inset-shadow([value])

default value is 1px 2px 8px 1px rgba(0, 0, 0, 0.25), can use in most situation

transition

  • .transition([value])

default value is all 0.4s ease-in-out

global var

  • ie-compat default is true to support ie6+ as possible as it can

Handful class

  • .clearfix
  • .left
  • .right
  • .block
  • .inline
  • .inline-block
  • .text-left
  • .text-right
  • .text-center
  • .hidden display none and visibility hidden
  • .invisible only visibility hidden
  • .circle
  • .round
  • .fixed
  • .absolute
  • .relative

Notice

lesses do nothing about compat prefix, only old ie and w3c

use autoprefixer to add vendor prefixes

e.g.

npm i -g less-plugin-autoprefix
lessc style.less --autoprefix="> 1%"

# if you are from China, then use
lessc style.less --autoprefix="> 0%" # all browser(IE6+) prefix

License

License