PackagePackagetypeA library you install and call yourself.See every one →What this type is →by SAPby SAPoriginPublished by SAP itself. A visible facet, never an input to a reading — a dormant official plugin reads exactly like a dormant independent one.See every one →

@sap-cloud-sdk/util

General utilities shared across the Cloud SDK packages — a dependency, not a thing to reach for on its own.

Facts

Latestv4.9.1ReleasedLast pushLicenceApache-2.0

Where it sits

Lives in
Provides
DestinationsCAPDestinationscapabilityReaching a system that is not yours — an S/4HANA tenant, an on-premise service, a third-party API — without the address, the credentials or the tunnel being written into the application. The destination is the indirection, and the reason an endpoint can move without a redeploy.

Who is behind it

SAPSAPOrganisationMaintains this
In the atlas: maintains 137, wrote 14
@SAP
maintainerArtem KovalovPersonContributes to this
In the atlas: contributes to 6
@artemkovalyov
SAP Cloud SDK BotPersonContributes to this
In the atlas: contributes to 11
@bot-sdk-js
BrigittaK307PersonContributes to this
In the atlas: contributes to 12
@BrigittaK307
Britta VarwigPersonContributes to this
In the atlas: contributes to 8
@bvarwig
Robert KaniaPersonContributes to this
In the atlas: contributes to 6
@cezaryrk
Christian SchüringsPersonContributes to this
In the atlas: contributes to 25
@cschuerings
Daniel KullmannPersonContributes to this
In the atlas: contributes to 6
@daniel-kullmann
David KnaackPersonContributes to this
In the atlas: contributes to 13, wrote 1
@davidkna-sap
Deeksha SinhaPersonContributes to this
In the atlas: contributes to 12
@deekshas8
Deni DajaPersonContributes to this
In the atlas: contributes to 6
@denidaja
38 contributors

Before choosing this

Conditions

LicenceSAP Developer License Agreement 3.2 CAP§ 1from DestinationsA destination used by a covered CAP application sends SAP product data to a non-SAP product rather than only addressing a remote endpoint.
  • § 1 License. Productive customer applications are limited to SAP BTP or another SAP-licensed platform, and mass extraction to a non-SAP product is restricted except where solely required for SAP interoperability.

A destination is configuration, not the deciding boundary. The licence becomes material when the resulting data flow is extraction into a non-SAP product, so the target and purpose need review.

SAP Developer License Agreement 3.2 CAP →

What it declares

Every artifact

Type
Package
Origin
By SAP

As a package

Where it runs
does not say
Distributed through
npm

Connections1

@sap-cloud-sdk/util connections@sap-cloud-sdk/utilPROVIDES→ provides1provides authoredDestinations

Install

npm add @sap-cloud-sdk/util

Derived from the package name. No recipe recorded; the README has the configuration.

README

quoted from SAP/cloud-sdk-js under Apache-2.0, read
SAP/cloud-sdk-js/packages/util/README.mdOn GitHub

SAP Cloud SDK for JavaScript Logo

@sap-cloud-sdk/util

This package contains general utility functions that we reuse multiple times in the SDK. While primarily designed for internal usage, they might also be beneficial for consumers of the SDK.

Installation
$ npm install @sap-cloud-sdk/util
Usage

The util package collects useful tools that help build your SAP Business Technology Platform application. For example, the following code snippet changes the log level of the destination accessor of the SDK.

import { setLogLevel } from '@sap-cloud-sdk/util';
setLogLevel('debug', 'destination-accessor');

Support

The recommended way to get in touch with us is to create an issue on GitHub. Select the issue category Bug, Feature, or Question depending on the nature of your request. We try to provide fixes, features and answers as soon as possible.

Contribute

If you would like to contribute to the SAP Cloud SDK, please make yourself familiar with our contributing guidelines and follow the given instructions.

License

The SAP Cloud SDK is released under the Apache License Version 2.0.

Apache-2.0, read

History

Latest

v4.9.1

  1. v4.9.0

  2. v4.8.0

  3. v4.7.0

  4. v4.6.0

    Features 1

    Notes
    Minor Changes
    • a6c8ff6: [Compatibility Note] Deprecate unixEOL and webEOL. Use '\n' or '\r\n' respectively.
  5. v4.5.1

  6. v4.5.0

  7. v4.4.0

  8. v4.3.1

  9. v4.3.0

  10. v4.2.0

  11. v4.1.2

    Fixes 1

    Notes
    Patch Changes
    • 011b841: [Fixed Issue] Update axios to 1.12.2 to fix vulnerability to DoS attack. Refer here for more details.
  12. v4.1.1

    Fixes 1

    Notes
    Patch Changes
    • b502b40: [Fixed Issue] Update axios to 1.11.0 to use non-vulnerable version of form-data.
  13. v4.1.0

  14. v4.0.2

  15. v4.0.1

  16. v4.0.0dated in the atlas

    Breaking 1, Features 1, Fixes 1

    Notes
    Major Changes
    • 7d92a1b: [Compatibility Note] The following deprecated content has been removed from the package:
      • The assoc constant has been removed. There is no replacement.
    Minor Changes
    • 936a6eb: [New Functionality] Add basePath option in the options-per-service.json file in the OpenAPI generator. This option prepends the base URL path to the API path parameter for every request.
    Patch Changes
    • 4228412: [Fixed Issue] Stringify Axios response data object in the error stack of ErrorWithCause class.
  17. v3.24.0

  18. v3.23.0

  19. v3.22.2

  20. v3.22.1

  21. v3.22.0

  22. v3.21.0

  23. v3.20.0

  24. v3.19.0

  25. v3.18.1

  26. v3.18.0

  27. v3.17.0

  28. v3.16.0

  29. v3.15.0

  30. v3.14.0

  31. v3.13.0

  32. v3.12.1

  33. v3.12.0

  34. v3.11.0

  35. v3.10.0

    Features 1

    Notes
    Minor Changes
    • 4d2b49b: [New Functionality] Add support for setting log level for newly created logger using environment variable SAP_CLOUD_SDK_LOG_LEVEL.
  36. v3.9.0

  37. v3.8.1

  38. v3.8.0

  39. v3.7.0

  40. v3.6.0

  41. v3.5.0

  42. v3.4.0

  43. v3.3.0

  44. v3.2.0

  45. v3.1.1

  46. v3.1.0

  47. v3.0.2

  48. v3.0.1

  49. v3.0.0dated in the atlas

    Breaking 4

    Notes
    Major Changes
    • fde964e37: [Compatibility Note] By default, generation of OData clients fails if a service path cannot be determined. Either provide servicePath value in the options-per-service.json or set skipValidation to true, in which case, / will be used.
    • fde964e37: [Compatibility Note] The function variadicArgumentToArray is replaced by the function transformVariadicArgumentToArray.
    • fde964e37: [Compatibility Note] Switch the compilerOptions.module to Node16 instead of CommonJS for better interoperability with ES modules. See the TypeScript handbook for technical details if needed.
    • fde964e37: [Compatibility Note] The field logger on the interface LoggerOptions was not used and is removed from the interface.
  50. v2.11.0

  51. v2.10.0

  52. v2.9.0

    Features 1

    Notes
    Minor Changes
    • 4c51d3dc: [New Functionality] Add method setGlobalTransports to support setting custom transport globally.
  53. v2.8.0

  54. v2.7.1

  55. v2.7.0

  56. v2.6.0

  57. v2.5.0

    Features 1

    Notes
    Minor Changes
    • 89f1c423: [Compatibility Note] Stop using VCAP_SERVICES to determine the log format. Use setLogFormat and setGlobalLogFormat to specify the log format. By default, the log format is set to kibana for NODE_ENV=production and local otherwise.
  58. v2.4.0

    Fixes 1

    Notes
    Patch Changes
    • 0a008674: [Fixed Issue] Fix a bug in the implementation of the trim method.
47,239downloads per week, npm
Weekly downloads for @sap-cloud-sdk/util26 complete calendar weeks from 2026-04-27 to 2026-10-25; the latest total is 47239.27 Apr – 3 May: 112,1714 May – 10 May: 129,69111 May – 17 May: 131,30918 May – 24 May: 130,19325 May – 31 May: 137,4131 Jun – 7 Jun: 152,4088 Jun – 14 Jun: 217,92515 Jun – 21 Jun: 182,44622 Jun – 28 Jun: 182,87329 Jun – 5 Jul: 181,7436 Jul – 12 Jul: 173,38113 Jul – 19 Jul: 303,44520 Jul – 26 Jul: 243,92527 Jul – 2 Aug: 282,3853 Aug – 9 Aug: 246,21110 Aug – 16 Aug: 228,14917 Aug – 23 Aug: 259,81324 Aug – 30 Aug: 279,50031 Aug – 6 Sept: 209,5597 Sept – 13 Sept: 188,48214 Sept – 20 Sept: 210,25621 Sept – 27 Sept: 264,34628 Sept – 4 Oct: 312,1305 Oct – 11 Oct: 224,19612 Oct – 18 Oct: 119,98819 Oct – 25 Oct: 47,239
Destinations
  1. SAP Destination serviceNamed, credentialed addresses of other systems resolved at runtimefrom BTP/BAIP
  2. SAP Private Link ServicePrivate network link between a BTP service and a partner cloudfrom BTP/BAIP
  3. com.sap.cds:cds-feature-remote-odataRemote Services for consuming OData V2 and V4 APIs in CAP Javafrom CAP
  4. com.sap.cds:cds-integration-cloud-sdkSAP Cloud SDK integration for remote REST services in CAP Javafrom CAP
  5. capire/s4Prebuilt SAP S/4HANA integration package for CAP projectsfrom CAP
  6. cdseDestination resolution and axios calls from CAP configurationfrom CAP
  7. @sap/cdsCAP Node.js runtimefrom CAP
  8. @sap-cloud-sdk/connectivityDestination lookup and connectivity proxy for the Cloud SDKfrom CAP
  9. @sap-cloud-sdk/http-clientHTTP client carrying a destination's credentialsfrom CAP
  10. @sap-cloud-sdk/odata-commonShared machinery under the Cloud SDK's OData and OpenAPI clientsfrom CAP
  11. @sap-cloud-sdk/openapiGenerated OpenAPI clients for the Cloud SDKfrom CAP
  12. @sap-cloud-sdk/resilienceTimeouts, retries and circuit breaking around remote callsfrom CAP
  13. btp-cloud-connector-setup-automationYeoman generator for Cloud Connector mappings and BTP destinationsfrom BTP/BAIP
  14. @sapmentors/cds-scp-apiNode module for CAP calling external APIs through a destinationfrom CAP

Details

Sources5
npm registrydiscovered herechecked
The discovery passdiscovered herechecked
npm registry, @sap-cloud-sdk/utilversion, releases, installschecked
github.com/git+https://github.com/SAP/cloud-sdk-js.gittree, pushes, contributors, CIchecked
packages/util/README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
latestv4.9.1
first release
releases and cadence2905, ~2d median
discovered vianpm registry, The discovery pass
first seen in the atlas
ecosystem and domaincap, integration-and-messaging
Contributors38
History in the atlas3
  1. Typed cds-plugin by placement, which defaults every candidate to that. It is not one.
  2. General utilities shared across the Cloud SDK packages — a dependency, not a thing to reach for on its own.
  3. First seen.
For your agent
Ref
artifact:sap-cloud-sdk-util
JSON
/artifacts/sap-cloud-sdk-util.json
MCP
Connecting an agent