open-index/open-npm huggingface dataset:
npm package: @t2ee/core
Description: @t2ee core library
Author: t2ee
Latest version: 0.1.19

<p align="center">
    <a href="https://t2ee.org">
        <img width="200" src="https://t2ee.org/img/logos/t2ee.png">
    </a>
</p>
<p align="center">
    <a href="https://core.t2ee.org">
        <img width="200" src="https://t2ee.org/img/logos/core.png">
    </a>
</p>

<p align="center">
    <a href="https://travis-ci.org/t2ee/core">
        <img src="https://img.shields.io/travis/t2ee/core/master.svg?style=flat-square">
    </a>
    <a href="https://coveralls.io/r/t2ee/core?branch=master">
        <img src="https://img.shields.io/coveralls/t2ee/core/master.svg?style=flat-square">
    </a>
</p>

# Introduction

This projects aims to be foundation component for the rest of [@t2ee](https://github.com/t2ee) projects. It provides dependency injection and auto configuration functionalities.

For detailed introduction and examples, please visit [core.t2ee.org](//core.t2ee.org).

# Installation

`npm i reflect-metadata @t2ee/core -S`

# Example

```typescript
@Component({ scope: new SingletonScope() })
class BootstrapTime {
    date: new Date();
}

@Component
class Main {
    @AutoWired
    programStartedAt: BootstrapTime
}

```
npm package: @t2ee/events
Description: as3 style events
Author: Qiaosen Huang
Latest version: 0.1.1

[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]

AS3 Style EventDispatcher.


[travis-image]: https://img.shields.io/travis/t2ee/events/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/t2ee/events
[coveralls-image]: https://img.shields.io/codecov/c/github/t2ee/events.svg
[coveralls-url]: https://codecov.io/gh/t2ee/events
npm package: @t2ee/restful
Description: restful
Author: Qiaosen Huang
Latest version: 1.0.3

<p align="center">
    <a href="https://t2ee.org">
        <img width="200" src="https://t2ee.org/img/logos/t2ee.png">
    </a>
</p>
<p align="center">
    <a href="https://restful.t2ee.org">
        <img width="200" src="https://t2ee.org/img/logos/restful.png">
    </a>
</p>

<p align="center">
    <a href="https://www.npmjs.com/package/@t2ee/restful">
        <img src="https://badge.fury.io/js/%40t2ee%2Frestful.svg">
    </a>
    <a href="https://travis-ci.org/t2ee/restful">
        <img src="https://img.shields.io/travis/t2ee/restful/master.svg?style=flat-square">
    </a>
    <a href="https://coveralls.io/r/t2ee/restful?branch=master">
        <img src="https://img.shields.io/coveralls/t2ee/restful/master.svg?style=flat-square">
    </a>
</p>

# Introduction

`@t2ee/restful` allows you to write restful clients that have verbal meanings, easy to read and easy to code.

For detailed introduction and examples, please visit [core.t2ee.org](//core.t2ee.org).

# Installation

`npm i reflect-metadata @t2ee/core @t2ee/restful -S`

## Basic Example

```typescript
interface Repository {
    id: number;
    name: string;
    //...
}

class GithubRepo {
    @GET('/users/{username}/repos')
    listUserRepos(@Path('username') username: string, @Query('type') type): Promise<Repository[]> {return null}
}

const builder = new RestfulService().baseUrl('https://api.github.com/');
const client = builder.create(GithubRepo);

const repos = await client.listUserRepos('t2ee', 'all');

```
npm package: @t2ee/sl4js
Description: This library is to be used with [@t2ee/core](https://github.com/t2ee/core)
Author: t2ee
Latest version: 0.1.8

<p align="center">
    <a href="https://t2ee.org">
        <img width="200" src="https://t2ee.org/img/logos/t2ee.png">
    </a>
</p>
<p align="center">
    <a href="https://sl4js.t2ee.org">
        <img width="200" src="https://t2ee.org/img/logos/sl4js.png">
    </a>
</p>

<p align="center">
    <a href="https://travis-ci.org/t2ee/sl4js">
        <img src="https://img.shields.io/travis/t2ee/sl4js/master.svg?style=flat-square">
    </a>
    <a href="https://coveralls.io/r/t2ee/sl4js?branch=master">
        <img src="https://img.shields.io/coveralls/t2ee/sl4js/master.svg?style=flat-square">
    </a>
</p>

# Introducation

A simple logging library yet with powerful functionalities. Customizable appenders and rich output format. Share configurations through application.

For detailed introduction and examples, please visit [sl4js.t2ee.org](//sl4js.t2ee.org)


# Installation

`npm i reflect-metadata @t2ee/core @t2ee/sl4js -S`

# Example

```yaml
  default: ConsoleDebug
  level: LogLevel.DEBUG
  appenders:
  - name: ConsoleDebug
    appender: console
      pattern: '%d{YYYY-MM-DD HH:mm:ss.SSS} %-7c{[%l]} %10n %5p - %2w  %M'
      level: LogLevel.DEBUG
  - name: FileLog
    appender: file
    pattern: '%d{YYYY-MM-DD HH:mm:ss.SSS} [%l] %10n %5p - %2w  %M'
    level: LogLevel.INFO
    file: relative(file.log)
```

```typescript
ConfigurationStore.loadFile(PATH_TO_LOGGING_CONFIGURATION);
LogManager.getLogger().debug('Hello World');
```
npm package: @t2ee/vader
Description: t2ee router component
Author: Qiaosen Huang
Latest version: 1.0.3

<p align="center">
    <a href="https://t2ee.org">
        <img width="200" src="https://t2ee.org/img/logos/t2ee.png">
    </a>
</p>
<p align="center">
    <a href="https://vader.t2ee.org">
        <img width="200" src="https://t2ee.org/img/logos/vader.png">
    </a>
</p>


<p align="center">
    <a href="https://www.npmjs.com/package/@t2ee/vader">
        <img src="https://badge.fury.io/js/%40t2ee%2Fvader.svg">
    </a>
    <a href="https://travis-ci.org/t2ee/vader">
        <img src="https://img.shields.io/travis/t2ee/vader/master.svg?style=flat-square">
    </a>
    <a href="https://coveralls.io/r/t2ee/vader?branch=master">
        <img src="https://img.shields.io/coveralls/t2ee/vader/master.svg?style=flat-square">
    </a>
</p>

# IMPORTANT !!

`@t2ee/vader` has now moved towards `1.x` versions, with brand new mechanisms (though, 99% like apis as `0.x` versions). For legacy `0.x` versions, please see [0.x branch](https://github.com/t2ee/vader/tree/0.x).

# Introducation

@t2ee/vader is a routing component (with JAX-RS like grammars). It is to be used with [koa@2](https://github.com/koajs/koa).

For detailed introduction and examples, please visit [vader.t2ee.org](//vader.t2ee.org)

# Installation

`npm i reflect-metadata @t2ee/core @t2ee/sl4js koa@2 @t2ee/vader -S`



# Example

```typescript
import 'reflect-metadata';
import * as Koa from 'koa';
import {
    Path,
    Router,
    QueryParam,
    Response,
    GET,
} from '@t2ee/vader';

const router = Router.newInstance();

@Path('')
class Controller {

    @GET
    @Path('/say')
    say(@QueryParam('message') message: string) {
        const response = new Response();
        response.body = message;
        return response;
    }
}

router.use(Controller);
const app = new Koa();
app.use(router.routes());
app.listen(8080);
```