Skip to content

modulexcite/less-plugin-lists

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

less-plugin-lists

List/array manipulation functions for Less.

npm version dependencies dev dependencies

Installation

npm install -g less-plugin-lists

Using with lessc

lessc --lists file.less

For more details about using plugins with the command line Less compiler see the corresponding section in the Less documentation.

Using with common Less tools

Programmatic Usage

See Using a plugin in code.

Function Reference

less-plugin-lists extends Less with the following functions:

  • at        - returns the value at the specified position in a list.
  • cat       - concatenates two or more lists.
  • flatten   - returns a one-dimensional list containing all elements of an input list.
  • join      - joins all elements of a list into a string.
  • l         - creates a comma-separated list.
  • slice     - returns selected portion of a list.
  • splice    - replaces or removes selected portion of a list and returns the modified copy.
  • transpose - transposes rows and columns of a list.
  • _inspect  - return a string representation of a list with debug/log formatting.

About

List manipulation functions for Less.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 64.1%
  • CSS 35.9%