New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fela-combine-arrays

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela-combine-arrays

Fela enhancer to merge array values when combining rules

1.0.9
latest
Source
npm
Version published
Weekly downloads
61
306.67%
Maintainers
2
Weekly downloads
 
Created
Source

fela-combine-arrays

Deprecated!
The combine arrays enhancer is deprecated, please remove it from your Fela configuration.
It is obsolete as css-in-js-utils' assignStyle now combines arrays by default.

npm version npm downloads

Enables merging array values when combining rules.
This is especially useful if you want to deeply merge extend arrays using fela-plugin-extend.

Installation

yarn add fela-combine-arrays

You may alternatively use npm i --save fela-combine-arrays.

Usage

Make sure to read the documentation on how to use plugins.

import { createRenderer } from 'fela'
import combineArrays from 'fela-combine-arrays'

const renderer = createRenderer({
  enhancers: [ combineArrays() ]
})

Configuration

To only merge a specific set of property values, you may pass an array of properties.

Example
import { createRenderer } from 'fela'
import combineArrays from 'fela-combine-arrays'

const combineArrayEnhancer = combineArrays(['extend'])

const renderer = createRenderer({
  enhancers: [ combineArrayEnhancer ]
})

License

Fela is licensed under the MIT License.
Documentation is licensed under Creative Common License.
Created with ♥ by @rofrischmann and all the great contributors.

Keywords

fela

FAQs

Package last updated on 25 Sep 2018

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