0.1.5 • Published 6 years ago

dog-factory v0.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

dog-factory

dog-factory is a simple and beauty factory library for Node.js and the browser

Installation

Node.js:

npm install dog-factory

Usage

Create instance of dogFactory

import dogFactory from 'dog-factory'

const df = new dogFactory();

Create User Model

df.create('User', { 
  name: 'firstName', 
  phone: 'phone' 
})

Create Website model

df.create('Website', { 
  website: 'website' 
})

Associating website model with users & and changing props in user model

df.changeProperty('User', { 
  website: df.associateFull('Website', 5) 
})

Build User model array with 2 objects

df.build('User', 2)

License

Copyright (c) 2019 Ernesto Cobos c0305@cobos.xyz.

This software is licensed under the MIT License.

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago