Skip to content

lucalas/ClassVerter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClassVerter 0.1

Javascript library to convert from one class language to another

ClassVerter

Language available:

  • C#
  • Java
  • Javascript
  • Typescript
  • PHP

And format...:

  • Json
  • JsonSchema

Api documentation:

var converter = new Converter();
converter.convertToClass(ClassText, typeFrom, typeTo, { isProperty: isProperty, className: jsonClassName, doc: doc });
  • ClassText -> Text class to convert

  • typeFrom -> type of class to convert [JSON, JSONSCHEMA, PHP, C#, JAVA, TS]

  • typeTo -> type of class converted [PHP, C#, JAVA, JS, TS, JSONSCHEMA]

{

  • isProperty -> true/false | return set/get methods
  • className -> name of the class, used only for JSON that doesn't have a classname
  • doc -> true/false | Add comment tag for the properties

}

Site:

ClassVerter

Releases

No releases published

Packages

No packages published