identity-scaffold
TypeScript icon, indicating that this package has built-in type declarations

2.3.5 • Public • Published

identity-scaffold

A typeScript web development resources creator for nodeJs. creating the 4 main CRIU operations endpoints and admin-bro resource for admin panel.

How to install

npm i identity-scaffold

Getting Started

const scaffold = require('identity-scaffold');

const modelName = "User";
const attributes = "name, string, true; photo, string, false";
const projectRootDirectory = "../src"

scaffold.createResource(modelName, attributes, projectRootDirectory);

Features

Supported Data types

  • string
  • number
  • boolean
  • MODEL_NAME (to reference for another model in the project )
// Assuming that there is another model in the system named User
// There is an example for the different supported types
// There third option refers required, it could be either true or false
// attribute format: "Name, Type, Required"
const attributes = "name, string, true; photo, string, false; userId, User, true; amount, number, true";

Readme

Keywords

none

Package Sidebar

Install

npm i identity-scaffold

Weekly Downloads

3

Version

2.3.5

License

ISC

Unpacked Size

184 kB

Total Files

106

Last publish

Collaborators

  • m4gdy
  • mohamed-ismail
  • tareksalah