Nobody Prefers Margarine

npm

Need private packages and team management tools?Check out npm Orgs. »

fela-logger

11.0.2 • Public • Published

fela-logger

npm version npm downloads Bundlephobia

Logging tool for Fela. Logs changes to the console, grouped by selector, animation name or font family.

Installation

yarn add fela-logger

You may alternatively use npm i --save fela-logger.

Usage

import { createRenderer } from 'fela'
import logger from 'fela-logger'
 
const renderer = createRenderer({
  enhancers: [ logger() ]
})

Configuration

Options
Option Value Default Description
logCSS (boolean) false logs rendered CSS string
formatCSS (boolean) false logs formatted CSS strings
only together with logCSS: true
Example
import { createRenderer } from 'fela'
import logger from 'fela-logger'
 
const loggerEnhancer = logger({
  logCSS: true,
  formatCSS: true
})
 
const renderer = createRenderer({
  enhancers: [ loggerEnhancer ]
})

Example

License

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

install

npm i fela-logger

Downloadsweekly downloads

210

version

11.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability