@startselect/eloquent-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Eloquent-JS

Automatic generation of getters and setters

  • Generate a .ts file in the root of your project.

Example contents (GetterSetterCommand.ts):

import {User} from "./src/__tests_data__/Support/UserEntity";
import {GetterAndSetterCommand} from "./src/Command/Generator/GetterAndSetterCommand";
import {GetterAndSetterBag} from "./src/Command/Generator/GetterAndSetterBag";

const getterAndSetterBag = new GetterAndSetterBag();
getterAndSetterBag.push(User, __dirname + '/src/__tests_data__/Support/UserEntity.ts');
const getSetCommand: GetterAndSetterCommand = new GetterAndSetterCommand(getterAndSetterBag);
getSetCommand.handle("\n");
  • Execute the following command from the root of your project:
./node_modules/ts-node/dist/bin.js ./GetterSetterCommand.ts

Readme

Keywords

none

Package Sidebar

Install

npm i @startselect/eloquent-js

Weekly Downloads

16

Version

1.0.0

License

MIT

Unpacked Size

80.7 kB

Total Files

105

Last publish

Collaborators

  • startselect