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

@popeindustries/lit

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@popeindustries/lit

Seamlessly render lit templates and elements on the server and in the browser

  • 1.3.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

NPM Version

@popeindustries/lit

A convenient, all-in-one package for server-rendering and hydrating lit templates and web components.

Features

  • fast, streaming, Node.js server or ServiceWorker rendering
  • seamless and efficient client-hydration via render()
  • compatible with all synchronous directives
  • proxies asynchronous directives for server streaming
  • extensive web component features:
    • server render and hydrate light or shadow DOM
    • default support for element.innerHTML and element.render()
    • lazy client-hydration with hydrate:idle and hydrate:visible attributes
    • LitElement base class support
    • render any base class with a custom ElementRenderer

Usage

Install with npm/yarn/pnpm:

$ npm install --save @popeindustries/lit

Author templates (see lit-html):

import { html, svg, render } from '@popeindustries/lit';
import { directive } from '@popeindustries/lit/directive.js';
import { until } from '@popeindustries/lit/directives/until.js';

Author LitElement web components (see lit-element):

import { css, LitElement } from '@popeindustries/lit';
import { LitElementRenderer } from '@popeindustries/lit/lit-element-renderer.js';

Author custom web components (see lit-html-server):

import { ElementRenderer } from '@popeindustries/lit/element-renderer.js';
import { lazyHydrationMixin } from '@popeindustries/lit/lazy-hydration-mixin.js';

Server render templates and web components (see lit-html-server):

import { renderToNodeStream, renderToString, renderToWebStream } from '@popeindustries/lit/html-server.js';

Keywords

FAQs

Package last updated on 01 Nov 2024

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