🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

node-app-commons

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-app-commons

class add to project

latest
Source
npmnpm
Version
0.0.7
Version published
Weekly downloads
14
1300%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

commons

FAQs

Package last updated on 06 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts