open-index/open-npm huggingface dataset:
npm package: @musicplayce/ts-sdk
Description: MusicPlayce SDK made with Typescript intended for client & server-side use.
Author: Gustavo Quinta
Latest version: 0.0.16

<!-- PROJECT LOGO -->
<br />
<p align="center">
  <a href="https://github.com/musicplayce/ts-sdk">
    <img src="assets/logo.png" alt="Logo" width="80" height="80">
  </a>

  <h3 align="center">@musicplayce/ts-sdk</h3>

  <p align="center">
    MusicPlayce SDK made with Typescript intended for client & server-side use.
    <br />
    <a href="https://github.com/musicplayce/ts-sdk"><strong>Explore the docs »</strong></a>
    <br />
    <br />
    <!-- · -->
    <a href="https://github.com/musicplayce/ts-sdk/issues">Report Bug</a>
    ·
    <a href="https://github.com/musicplayce/ts-sdk/issues">Request Feature</a>
  </p>
</p>

[![npm version](https://badge.fury.io/js/%40musicplayce%2Fts-sdk.svg)](https://badge.fury.io/js/%40musicplayce%2Fts-sdk) ![](https://github.com/musicplayce/ts-sdk/workflows/build/badge.svg) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

<!-- TABLE OF CONTENTS -->
# Table of Contents

- [Getting Started](#getting-started)
	- [Installing](#installing)
	- [Usage](#usage)
- [Built With](#built-with)
- [Versioning](#versioning)
- [Author(s)](<#author(s)>)
- [License](#license)

## Getting Started

### Installing

Using npm:

```bash
npm install @musicplayce/ts-sdk
```

Using yarn:

```bash
yarn add @musicplayce/ts-sdk
```

### Usage

Import the SDK into your project:
```typescript
import MPlayceClient from '@musicplayce/ts-sdk';

// or use require
const MPlayceClient = require('@musicplayce/ts-sdk');
```

Initialize a new client:

```typescript
const options = { beta: true }; // Passing an options object is optional!
const client = new MPlayceClient(options).authenticate({ username: 'YOUR_USERNAME_EMAIL_HERE', password: 'YOUR_PASSWORD_HERE' });

console.log(client.apiVersion); // '1.0'
```

## Built With

- [Typescript](https://www.typescriptlang.org/) - Typescript enables JavaScript developers to use highly-productive development tools and practices like static checking and code refactoring when developing JavaScript applications.
- [Axios](https://github.com/axios/axios) - Promise based HTTP client for the browser and node.js.
- [lodash](https://github.com/lodash/lodash) - A modern JavaScript utility library delivering modularity, performance, & extras.

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/MoonTory/theia-cli/tags).

## Author(s)

- **Gustavo Quinta** - _Initial work_ - [MoonTory](https://github.com/moontory)

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
npm package: @musicplayer/logger-module
Description: Logger module to use logging microservice
Author: Stefan Läufle
Latest version: 1.1.2

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Build Status](https://travis-ci.org/stefanFCB94/musicplayer-logger-module.svg?branch=master)](https://travis-ci.org/stefanFCB94/musicplayer-logger-module)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/4745ed1b73fe4441a8f6fb1cd1fa3db1)](https://www.codacy.com/app/stefanFCB94/musicplayer-logger-module?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=stefanFCB94/musicplayer-logger-module&amp;utm_campaign=Badge_Grade)

# Logger module to use in musicplayer microservice environment

NPM package, which can be used in the musicplayer repository.

## Usage

```typescript
import { Logger, log_error } from '@musicplayer/logger-module';

// Address of the logger microservice
const useHttps = true;
const host = host;
const port = port;
const version = 1;

// Name of the service, on which the module is used
const serviceName = 'serviceName';

const logger = new Logger(useHttps, host, port, version, serviceName);
logger.start();

// Create log files to log service and request messages (optional)
open_service_file();
open_request_file('request_number');

// Log messages
log_error('request_number', 'message');
log_error('request_number', new Error('error_message'));

// Close the open file handles for the request and service log file
close_request_file('request_number');
close_service_file();

logger.stop();
```

## Available function to handle log files

* open_service_file
* open_request_file
* close_service_file
* close_request_file 

## Available functions to log messages

* log_error
* log_warn
* log_info
* log_verbose
* log_debug
* log_silly