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

@commerce-apps/exchange-connector

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commerce-apps/exchange-connector

Downloads raml specs from exchange

  • 1.4.1-beta.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

exchange-connector

The exchange-connector package allows downloading RAML files from anypoint exchange.

Setup

Execute the following commands to install dependencies and build exchange-connector.

# To setup
npm install

# To build
npm run build

# To link (Optional)
npm link

Usage

import {getBearer, getRamlByTag} form "@commerce-apps/exchange-connector"

// Gets an Access token for talking with Mulesoft
getBearer(username, password): Promise<Token>

// Searches and returns the list of available RestApis
searchExchange(accessToken: string, searchString: string): Promise<RestApi[]>

// Gets raml from exchange, downloads to specified folder (defaults to ./download )
downloadRestApi(restApi: RestApi, destinationFolder: string): Promise<void | Response> 

Testing

To run tests, execute

npm run test

To print the detailed test results and errors on the console, execute

npm run test:debug

License Information

This package is licensed under BSD-3-Clause license. See the license for details.

FAQs

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