@nestjs/common
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -0,3 +1,11 @@ | ||
import { MicroserviceConfiguration } from '@nestjs/microservices'; | ||
import { INestMicroservice } from './index'; | ||
export interface INestApplication { | ||
init(): void; | ||
listen(port: number, callback?: () => void): any; | ||
setGlobalPrefix(prefix: string): void; | ||
connectMicroservice(config: MicroserviceConfiguration): INestMicroservice; | ||
getMicroservices(): INestMicroservice[]; | ||
startAllMicroservices(callback: () => void): void; | ||
close(): void; | ||
} |
export interface INestMicroservice { | ||
listen(callback: () => void): any; | ||
close(): void; | ||
} |
{ | ||
"name": "@nestjs/common", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@common)", | ||
@@ -5,0 +5,0 @@ "author": "Kamil Mysliwiec", |
@@ -10,2 +10,5 @@ [![Nest Logo](http://kamilmysliwiec.com/public/nest-logo.png)](http://kamilmysliwiec.com/) | ||
[![Coverage Status](https://coveralls.io/repos/github/kamilmysliwiec/nest/badge.svg?branch=master)](https://coveralls.io/github/kamilmysliwiec/nest?branch=master) | ||
[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer) | ||
[![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor) | ||
[![Gitter](https://badges.gitter.im/nestjs/nestjs.svg)](https://gitter.im/nestjs/nestjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge) | ||
@@ -20,6 +23,15 @@ ## Description | ||
**Git:** | ||
```bash | ||
$ npm install nest.js | ||
$ git clone https://github.com/kamilmysliwiec/nest-typescript-starter.git project | ||
$ cd project | ||
$ npm install | ||
$ npm run start | ||
``` | ||
**NPM:** | ||
```bash | ||
$ npm i --save @nestjs/core @nestjs/common @nestjs/microservices @nestjs/websockets @nestjs/testing reflect-metadata rxjs | ||
``` | ||
## Philosophy | ||
@@ -35,10 +47,11 @@ | ||
- Easy to learn - syntax is similar to [Angular](https://angular.io/) | ||
- Compatible with both TypeScript and ES6 (I strongly recommend to use [TypeScript](http://www.typescriptlang.org)) | ||
- Based on well-known libraries ([Express](https://github.com/expressjs/express) / [socket.io](https://github.com/socketio/socket.io)) so you could share your experience | ||
- Easy to learn - syntax is similar to [Angular](https://angular.io/) / [Spring](https://spring.io) (Java) | ||
- Dependency Injection, built-in **Inversion of Control** container | ||
- Exceptions handler layer (helps to focus on logic) | ||
- Supremely useful Dependency Injection, built-in **Inversion of Control** container | ||
- **Hierarchical injector** - increase abstraction in your application by creating reusable, loosely coupled modules with type injection | ||
- Own modularity system (split your system into reusable modules) | ||
- **WebSockets** module (based on [socket.io](https://github.com/socketio/socket.io)) | ||
- Reactive **microservices** support with messages patterns (transport via TCP / [Redis](https://redis.io/)) | ||
- Exceptions handler layer | ||
- Testing utilities | ||
@@ -48,3 +61,3 @@ | ||
[Documentation & Tutorial](https://kamilmysliwiec.gitbooks.io/nest/content/) | ||
[Documentation & Tutorial](http://docs.nestjs.com) | ||
@@ -56,15 +69,48 @@ ## Starter repos | ||
## Future | ||
## Useful references | ||
Nest is very much still a work in progress. There is still some things to finish: | ||
- [Modules](http://docs.nestjs.com/modules.html) | ||
- [Examples](http://docs.nestjs.com/examples.html) | ||
- [API Reference](http://docs.nestjs.com/api-reference.html) | ||
- Examples(!) | ||
- Validation helpers | ||
- More test utilities | ||
- and more... | ||
## People | ||
Author - [Kamil Myśliwiec](http://kamilmysliwiec.com) | ||
- Author - [Kamil Myśliwiec](http://kamilmysliwiec.com) | ||
- Website - [http://nestjs.com](http://nestjs.com/) | ||
## Backers | ||
I am on a mission to provide an architecture to create truly flexible, scalable and loosely coupled systems using Node.js platform. It takes a lot of time, so if you want to support me, let's [become a backer / sponsor]((https://opencollective.com/nest#backer)). I'll appreciate each help. Thanks! | ||
<a href="https://opencollective.com/nest/backer/0/website" target="_blank"><img src="https://opencollective.com/nest/backer/0/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/1/website" target="_blank"><img src="https://opencollective.com/nest/backer/1/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/2/website" target="_blank"><img src="https://opencollective.com/nest/backer/2/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/3/website" target="_blank"><img src="https://opencollective.com/nest/backer/3/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/4/website" target="_blank"><img src="https://opencollective.com/nest/backer/4/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/5/website" target="_blank"><img src="https://opencollective.com/nest/backer/5/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/6/website" target="_blank"><img src="https://opencollective.com/nest/backer/6/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/7/website" target="_blank"><img src="https://opencollective.com/nest/backer/7/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/8/website" target="_blank"><img src="https://opencollective.com/nest/backer/8/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/9/website" target="_blank"><img src="https://opencollective.com/nest/backer/9/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/10/website" target="_blank"><img src="https://opencollective.com/nest/backer/10/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/11/website" target="_blank"><img src="https://opencollective.com/nest/backer/11/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/12/website" target="_blank"><img src="https://opencollective.com/nest/backer/12/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/13/website" target="_blank"><img src="https://opencollective.com/nest/backer/13/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/14/website" target="_blank"><img src="https://opencollective.com/nest/backer/14/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/15/website" target="_blank"><img src="https://opencollective.com/nest/backer/15/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/16/website" target="_blank"><img src="https://opencollective.com/nest/backer/16/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/17/website" target="_blank"><img src="https://opencollective.com/nest/backer/17/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/18/website" target="_blank"><img src="https://opencollective.com/nest/backer/18/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/19/website" target="_blank"><img src="https://opencollective.com/nest/backer/19/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/20/website" target="_blank"><img src="https://opencollective.com/nest/backer/20/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/21/website" target="_blank"><img src="https://opencollective.com/nest/backer/21/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/22/website" target="_blank"><img src="https://opencollective.com/nest/backer/22/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/23/website" target="_blank"><img src="https://opencollective.com/nest/backer/23/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/24/website" target="_blank"><img src="https://opencollective.com/nest/backer/24/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/25/website" target="_blank"><img src="https://opencollective.com/nest/backer/25/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/26/website" target="_blank"><img src="https://opencollective.com/nest/backer/26/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/27/website" target="_blank"><img src="https://opencollective.com/nest/backer/27/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/28/website" target="_blank"><img src="https://opencollective.com/nest/backer/28/avatar.svg"></a> | ||
<a href="https://opencollective.com/nest/backer/29/website" target="_blank"><img src="https://opencollective.com/nest/backer/29/avatar.svg"></a> | ||
## License | ||
@@ -74,6 +120,6 @@ | ||
[npm-image]: https://badge.fury.io/js/nest.js.svg | ||
[npm-url]: https://npmjs.org/package/nest.js | ||
[npm-image]: https://badge.fury.io/js/%40nestjs%2Fcore.svg | ||
[npm-url]: https://www.npmjs.com/~nestjscore | ||
[downloads-image]: https://img.shields.io/npm/dm/nest.js.svg | ||
[downloads-url]: https://npmjs.org/package/nest.js | ||
[downloads-url]: https://www.npmjs.com/~nestjscore | ||
[travis-image]: https://api.travis-ci.org/kamilmysliwiec/nest.svg?branch=master | ||
@@ -80,0 +126,0 @@ [travis-url]: https://travis-ci.org/kamilmysliwiec/nest |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41723
715
123
1