1.0.0 • Published 5 years ago

csharp-data-annotations-parser v1.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

csharp-data-annotations-parser

Parsing of C# data annotations to TypeScript/Angular Validators

Features

Parses C# data annotations to

  • TypeScript constants
  • Angular Validators which can be used in Reactive Forms

Install

$ npm install csharp-data-annotations-parser

Usage

$ parse-csharp-data-annotations --dll="C:\dllfolder\somedll.dll" --tsConstantsDestination="C:\temp\ts-constants.ts" --ngReactiveFormValidatorsDestination="C:\temp\ng-validators.ts"

Arguments

  • --dll (path to c# dll)

Options

  • --tsConstantsDestination (output path of TypeScript constants file)
  • --ngReactiveFormValidatorsDestination (output path of Angular Validators file)