Socket
Socket
Sign inDemoInstall

@sap-ux/edmx-parser

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-ux/edmx-parser

SAP Fiori OData - EDMX File parser


Version published
Weekly downloads
19K
decreased by-2.28%
Maintainers
0
Weekly downloads
 
Created
Source

@sap-ux/edmx-parser

Provides a way to parse OData metadata document and annotations files into an object structure.

This structure can be used as is or can be then passed onto the @sap-ux/annotation-converter module that will provide an even more flexible and user friendly interface.

The parser also exposes a merge method to merge multiple metadata document together if required.

Installation

npm npm install --save-dev @sap-ux/edmx-parser

yarn yarn add @sap-ux/edmx-parser --dev

pnpm pnpm add @sap-ux/edmx-parser --dev

Usage

Import the parse or merge method from the module

import { parse, merge } from '@sap-ux/edmx-parser';

Use it on an edmx / annotation file

const myEdmxFile = await fs.readFile(...)
const myAnnotationFile = await fs.readFile(...)
const myParsedEdmx = parse(myEdmxFile);
const myParsedAnnotation = parse(myAnnotationFile);

const myMergedContent = merge(myParsedEdmx, myParsedAnnotation)

Keywords

Metadata Parser

FAQs

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