0.1.24 • Published 3 years ago

ylenia v0.1.24

Weekly downloads
1
License
ISC
Repository
github
Last release
3 years ago

Ylenia

TypeScript-Code- and JSON-Generator. Based on a Definition in a JSON-File, this DataSource-Object generates for each DataSource a JSON-Source-File to store and two TypeScript-Classes to access and work data.

JSON-File

The generated JSON-Files are ready to contain all data, defined in Definition-File. You don't have to think about the structure because you only access the data with the following two TypeScript-Files:

TypeScript-Files

Ylenia generates two TypeScript-Files with one Class each. One Class represents the object, for Example "Attribute". The other Class is a Controller to work with the Object-Class, for Example "Attributes".

Object-Class

Let's say we define an Object which represents a Person and contains a Pre- and a Lastname. The Object-Class contains the Data and all Get- and Set-Methods.

Controller-Class

The Controller-Class contains an Array of Objects, based on the Object-Class. It also contains some Default-Methods:

  • add
  • addProtected (Does not add, if the Object already exists)
  • exist
  • get
  • getAll
  • load
  • remove
  • save

Import

import {DataSources} from "ylenia";
let ds = new DataSources("./definition.json");
0.1.20

3 years ago

0.1.21

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.24

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.19

3 years ago

0.1.13

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.16

3 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.4

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.3

3 years ago

0.1.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

4 years ago