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

@redhat-cloud-services/javascript-clients-shared

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@redhat-cloud-services/javascript-clients-shared

@redhat-cloud-services/javascript-clients-shared / [Exports](modules.md)

  • 1.2.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@redhat-cloud-services/javascript-clients-shared / Exports

Shared Javascript utilities and functions for javascript-clients

This package contains some common configurations and functions needed for clients using the new javascript-clients generator.

Install

NPM

npm install --save @redhat-cloud-services/javascript-clients-shared

Or Yarn

yarn add @redhat-cloud-services/javascript-clients-shared

Usage

This client is using typescript and axios. Types are distributed with this package, so no need to define or install them separately.

To correctly bootstrap this API you should use this config (no need to define it multiple times, just one config and reimport it anywhere you want to use it).

// api.js
import APIFactory from '@redhat-cloud-services/javascript-clients-shared'; 

// BASE_PATH should be set in your constants file
const someApi = APIFactory(BASE_PATH, undefined, { createEndpoint, enableEndpoint });
export someApi;

Building

Run nx build @redhat-cloud-services/javascript-clients-shared to build the library.

Running unit tests

Run nx test @redhat-cloud-services/javascript-clients-shared to execute the unit tests via Jest.

API documentation

  • README

FAQs

Package last updated on 18 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