New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

invierno

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

invierno

Minimal POO backend TS framework

latest
Source
npmnpm
Version
1.1.4
Version published
Maintainers
1
Created
Source

Note: Inspired by NestJS

A simple Node.js OOP framework for building apps in the way you like.

NPM Version Package License NPM Downloads

Description

Invierno is a simple framework for building just API applications with minimal configuration, following best practices and patterns, is built with TypeScript (preserves compatibility with pure JavaScript) and combines the best of AOP & OOP

You can use whatever you want with Invierno, Express, Serverless, Fastify... It doesn't matter, you are in control to use what you want.

Getting started

Configure your starting point as follow (index.ts)

import { Main, IConfiguration } from 'invierno';
import { HttpServer } from 'invierno-fastify';
import './controllers';

@Main({
  logger: true, // Or provide any logger instance you want like console
})
@HttpServer(3000) // Enable fastify to serve as http server
export class Application implements IMain {
  // onLoad?(configuration: IAppConfiguration): IAppConfiguration | Promise<IAppConfiguration>;
  // onLoaded?(configuration: IAppConfiguration): void;
}

Now configure your controller (controllers/index.ts)

import { Controller, Get } from 'invierno';

@Controller('api/v1/status')
export class ControllerTest {
  @Get()
  public status() {
    return 'ok';
  }
}

Looking for docs?

Go here

Keywords

POO

FAQs

Package last updated on 01 Nov 2020

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