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

@shopware-pwa/helpers

Package Overview
Dependencies
Maintainers
2
Versions
834
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopware-pwa/helpers

@shopware-pwa/helpers

  • 1.6.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Shopware PWA helpers

Helpers dedicated for Shopware.
The package implements Vue Storefront Next architecture and provides agnostic mappers for data transfer objects.

Installing

Using yarn:

$ yarn add @shopware-pwa/helpers

Usage examples

this example uses @shopware-pwa/shopware-6-client package for loading product data

import { getProductName } from "@shopware-pwa/helpers";
import { getProduct } from "@shopware-pwa/shopware-6-client";

// you loaded Product from API
const productId = "hwfiu3hf384h92948h298h2";
const product = await getProduct(productId);
const name = getProductName(product);

Why bother?
It's a very simple example, but as it may look like an obvious one, you may find yourself struggling to see which field in object structure is what you're looking for. Which price is regular, which object attribute should you use? And this problem appears with every platform. Thanks to Vue Storefront Next pattern you always know that you'll get exactly what you're looking for in objects.

FAQs

Package last updated on 23 Jan 2023

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