0.0.7 • Published 2 years ago

node-app-commons v0.0.7

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

node-app-commons

commons install

npm i node-app-commons

use class

  • Person
  • User
  • Message
  • Channel
  • Timeline
import Person from './src/person.js';
import User from './src/user.js';
import Message from './src/message.js';
import Channel from './src/channel.js';
import Timeline from './src/timeline.js';

const person = new Person('Manuel');

const name = person.getName();
// ...
const user = new User(name, 'manuelflorezw@gmail.com', '***');

const message = new Message(`Saluda ${user.getName()}`);

const channel = new Channel(message, 'name-queue');
//..

const data = {
    name: "pedro",
    rol: "admin",
    ...
};

const timeline = new Timeline(new Date(), data);
  ...
timeline.setEnd(new Date());

NOTA: The use class

0.0.7

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago