Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

less-plugin-lists

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

less-plugin-lists

list/array manipulation functions for Less

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
337
decreased by-18.6%
Maintainers
1
Weekly downloads
 
Created
Source

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.

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

Keywords

FAQs

Package last updated on 15 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc