1.0.0 • Published 4 years ago

convertmodels4 v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

dotnetcoreconvermodels

dotnetcoreconvermodels is a nodejs library that convert the C# models into typescript models.

Installation

npm i dotnetcoreconvertmodels

Usage

import ConvertProcess from 'dotnetcoreconvertmodels/index.js';

var g = new ConvertProcess([
    '../BackEnd/Data/Model1',
    '../BackEnd/Data/Model2',
    '../BackEnd/Data/Model3'
], './src/app/shared/models', {
    camelCase: false,
    usingDefaultInTsFile: true
});

first parameters are the pathes to the C# models.

second parameter is the path to put the TypeScript models in.

third parameter is config to specific either using camel case in converting property and using default in exporting class in typescript

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.