Détail du package

css-functions-list

niksy16.9mMIT3.2.3

List of standard and browser specific CSS functions.

css, functions, list

readme

css-functions-list

Build Status

List of standard and browser specific>) CSS functions.

Data sources are:

Install

npm install css-functions-list --save

Usage

import { promises as fs } from 'fs';
import functionsListPath from 'css-functions-list';

(async () => {
    const functionsList = JSON.parse(
        await fs.readFile(functionsListPath, 'utf8')
    );
    console.log(functionsList);
    /* [
        'abs',
        'acos',
        'annotation',
        'asin',
        'atan',
        'atan2',
        'attr',
        'blur',
        'brightness',
        'calc'
        // …
    ]; */
})();

API

functionsListPath

Type: string

Path to CSS functions list JSON file.

License

MIT © Ivan Nikolić

changelog

Changelog

Unreleased

3.2.3 - 2024-10-09

  • Add calc-size and shape function
  • Filter invalid functions

3.2.2 - 2024-04-22

  • Add additional function references

3.2.1 - 2023-10-15

Changed

  • Add additional function references

3.2.0 - 2023-07-10

Changed

  • Update with latest function definitions
  • Keep functions that end with X|Y|Z, like rotatex or rotatey (rotateX or rotateY) (#4)

3.1.0 - 2022-06-03

Added

  • Add OKLCH and OKLab functions (#4)

3.0.1 - 2022-02-14

Fixed

  • Use fileURLToPath for location resolve

Added

  • Windows to CI matrix

3.0.0 - 2022-02-03

Changed

  • Breaking: Only Node >= 12.22 is supported

Added

  • New additions to list

2.0.0 - 2021-09-02

Added

  • Initial implementation