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

@lwrjs/shared-utils

Package Overview
Dependencies
Maintainers
7
Versions
459
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwrjs/shared-utils

This package contains util code to be shared across @lwrjs packages. The code can be used by node modules and by client modules, if it's properly exposed from lwc config.

  • 0.0.2-alpha22
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.4K
decreased by-34.35%
Maintainers
7
Weekly downloads
 
Created
Source

Lightning Web Runtime :: Shared Utils

This package contains util code to be shared across @lwrjs packages. The code can be used by node modules and by client modules, if it's properly exposed from lwc config.

Observable Util

The observable util is an example of code that can be used both on the client side and on the node server side.

Node Usage

import { createObservable } from '@lwrjs/shared-utils';

const observable = createObservable();

Client Usage

Consuming package lwc config

{
    "modules": [
        {
            "npm": "@lwrjs/shared-utils"
        }
    ]
}

Module code

import { createObservable } from 'lwr/observable';

const observable = createObservable();

FAQs

Package last updated on 15 Oct 2020

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