Skip to content

test and build

Lit utils ​

A collection of utilities, directives and converters for working with Lit, a library for building web components.

For a detailed documentation visit https://enke-dev.github.io/lit-utils/.

Installation ​

bash
npm install -S @enke.dev/lit-utils

Converters ​

Lit allows defining own attribute converters to handle custom data types. Some converters are used more often, especially for attributes, that immitate standard non-primitive HTML attributes.

Directives ​

Lit directives are a powerful way to extend the functionality of Lit templates. They allow you to create reusable pieces of logic. Some repetetive patterns can be found as directives in this package.

Types ​

Some useful types that are either used internally or moved from project to project before.

Utils ​

Helpers for various occasions, like working with dates, plural forms, form association, logging, or the @lit-labs/router package.

Updating dependencies ​

Bump dependencies and node to latest version in all packages:

bash
./scripts/update.sh

Modules ​