less-plugin-keys

0.0.2 • Public • Published

less-plugin-keys

A Less plugin defining a utility function keys() for getting the properties of a ruleset as a list, for easier iteration with each().

Up and Running

Install with npm: npm install --save-dev less-plugin-keys

To use it, either pass --keys to lessc when you build, or reference the plugin with @plugin, like this:

@plugin "keys";

Limitations

I've only tested this function with rulesets as variables. It's enough to get by, but there's probably lots of opportunity for improvements.

Contributing

This project is young, but you can help it grow up! Issues and pull requests are welcome. Be kind and respectful.

Readme

Keywords

Package Sidebar

Install

npm i less-plugin-keys

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

3.04 kB

Total Files

4

Last publish

Collaborators

  • calvinjuarez