New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sap/mta-lib

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap/mta-lib

Library for creating, reading and modifying multi-target application descriptor files

  • 1.7.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
136K
decreased by-21.04%
Maintainers
1
Weekly downloads
 
Created
Source

@sap/mta-lib

Javascript wrapper library for creating, reading and modifying multi-target application development descriptor files.

Requirements

This library uses Cloud MTA version 1.0.0. It is not required to install it to use the library, but if it is found in the path in the correct version, it will be used. Otherwise, this library will download it.

Sample usage

Adding a new module:

import { Mta, mta } from "@sap/mta-lib";
import * as path from "path";

let projectPath; // = ...

const mtaObj = new Mta(projectPath);

const mtaModule: mta.Module = {
  name: this.appName,
  type: "my-type",
  path: path.relative(this.appOptions.projectPath, this.appPath),
  parameters: {
    "disk-quota": "DISK_QUOTA",
    memory: "MEMORY",
  },
  requires: [
    {
      name: this.appOptions.projectName + "suffix",
    },
  ],
};

await mtaObj.addModule(mtaModule);

// ...

try {
  await mtaObj.save();
} catch (e) {
  console.log(e);
}

Packaging with webpack

To use this library from an application packaged with webpack, you have to follow the instructions for packaging the mta-local package.

FAQs

Package last updated on 17 Oct 2021

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