Package Exports
- less-plugin-lists
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (less-plugin-lists) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
less-plugin-lists
List/array manipulation functions for Less.
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
Functions
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 or space 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.
Additional features
- Vector Arithmetic - perform arithmetic operations on lists