open-index/open-npm huggingface dataset:
npm package: @gooostaw/event-emitter
Description: event emitter library
Author: Konrad Sobierajski
Latest version: 1.0.5

# event-emitter

Event-emitter is an easy-to-use ES module for web browsers. The library allows you to create event emitters and listeners. Listeners can be switched on and off.

# Install
```
$ npm install --save @gooostaw/event-emitter
```

# Usage

Import:
```javascript
import EventEmitter from 'event-emitter.js';
```

Create EventEmitter:
```javascript
let ee = new EventEmitter();
```

or create new class and extend EventEmitter:
```javascript
class Foo extend EventEmitter(){
    //class definition
}

let foo = new Foo();
```

Create listener and emit events:
```javascript
//execute on every emit of 'some-event' event
ee.on('some-event', () => console.log('some-event'));
ee.emit('some-event');
ee.emit('some-event');
```
One-time listener:
```javascript
//execute only once
ee.one('some-event', () => console.log('some-event'));
ee.emit('some-event');
ee.emit('some-event');
```
Sending arguments:
```javascript
//receive an argument from emitter
ee.on('some-event', (argument) => console.log(argument));
ee.emit('some-event', 'abc');

//receive multiple arguments
ee.on('other-event', (arg1, arg2) => console.log(arg1 + arg2));
ee.emit('other-event', 'def', 'ghi');
```
Listeners can be switched on and off:
```javascript
let listener = ee.on('some-event', () => console.log('some-event'));
ee.emit('some-event');
listener.off();
ee.emit('some-event'); //this emit will be ignored
listener.on();
ee.emit('some-event');
```
Remove listeners:
```javascript
listener.remove(); //remove this listener
ee.clear(); //remove all listeners from this emitter
```

## License

[MIT License](https://opensource.org/licenses/MIT) ©
npm package: @goopil/nestjs-query-graphql
Description: Nestjs graphql query adapter
Author: doug-martin
Latest version: 0.31.0

<p align="center">
  <a href="https://goopil.github.io/nestjs-query" target="blank"><img src="https://goopil.github.io/nestjs-query/img/logo.svg" width="120" alt="Nestjs-query Logo" /></a>
</p>

[![npm version](https://img.shields.io/npm/v/@goopil/nestjs-query-graphql.svg)](https://www.npmjs.org/package/@goopil/nestjs-query-graphql)
[![Test](https://github.com/goopil/nestjs-query/workflows/Test/badge.svg?branch=master)](https://github.com/goopil/nestjs-query/actions?query=workflow%3ATest+and+branch%3Amaster+)
[![Coverage Status](https://coveralls.io/repos/github/goopil/nestjs-query/badge.svg?branch=master)](https://coveralls.io/github/goopil/nestjs-query?branch=master)
[![Known Vulnerabilities](https://snyk.io/test/github/goopil/nestjs-query/badge.svg?targetFile=packages/query-graphql/package.json)](https://snyk.io/test/github/goopil/nestjs-query?targetFile=packages/query-graphql/package.json)

# `@goopil/nestjs-query-graphql`

This package provides a code first implementation of graphql CRUD endpoints. It is built on top of of [nestjs](https://nestjs.com/). 

## Installation

[Install Guide](https://goopil.github.io/nestjs-query/docs/introduction/install)

## Getting Started

The get started with the `@goopil/nestjs-query-graphql` package checkout the [Getting Started](https://goopil.github.io/nestjs-query/docs/graphql/getting-started) docs.
npm package: @goori-soft/logger
Description: Simple debug tool
Author: Goori Soft Studio
Latest version: 0.0.4

# logger
Simple debug tool

## Instalação
Para instalar a ferramenta entre com o seguinte comando no terminal
```
$ npm install @goori-soft/logger
```

## Configurações
Para inicializar a ferramenta em seu projeto:
```javascript
const logger = require('@goori-soft/logger');
logger
    .debug('This is a test message!')
    .error('This is an error message!');
```

Um objeto de configuração pode ser fornecido para o logger:
```javascript
const config = {
    debugForFile: true,
    filename: 'mylog.log',
    path: './myfolder'
};

const logger = require('@goori-soft/logger');

logger
    .setConfig(config)
    .debug('This message is now registred on the log file!');
```
## Variáveis de ambiente
As configurações podem ser feitas através de variáveis de ambiente. A tabela a seguir exibe as variáveis de ambiente disponíveis para configuração da ferramenta.

| Ambiente | Código | Padrão | Observações |
| --- | --- | --- | --- |
| LOG_FILENAME | filename | logger.log | String |
| LOG_PATH | path | . | String |
| LOG_FILEMAXSIZE | fileMaxSize | 1 | MB, este valor não é estritamente confiável | 
| LOG_ENCODING | encoding | utf8 | String |
| LOG_TAB | tab | "   " | String |
| LOG_DEBUG_CONSOLE | debugForConsole | true | Boolean |
| LOG_DEBUG_FILE | debugForFile | true | Boolean |
| LOG_MARK | mark | "--" | String |

## Autor e contato
Autor: Lucas Machado Rodrigues

Goori Soft Studio

daumgrito@goori.com.br