0.7.1 • Published 2 months ago

@sap-ux/edmx-parser v0.7.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 months ago

@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

0.7.1

2 months ago

0.7.0

7 months ago

0.5.16

12 months ago

0.5.15

12 months ago

0.6.0

11 months ago

0.5.14

1 year ago

0.5.12

2 years ago

0.5.13

2 years ago

0.5.10

2 years ago

0.5.11

2 years ago

0.5.8

2 years ago

0.5.7

2 years ago

0.5.9

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago