open-index/open-npm huggingface dataset:
npm package: @shopup/logger
Description: Just a simple winston extension
Author: Mike Antoniadis
Latest version: 4.0.2

### Usage


```typescript

import logger from '@blendo/node-logger'

logger.error("message",{any:"extra data"})
logger.info("message",{any:"extra data"})
logger.warning("message",{any:"extra data"})

```

Levels
```
{
  emerg: 0,
  alert: 1,
  crit: 2,
  error: 3,
  warning: 4,
  notice: 5,
  info: 6,
  debug: 7
}
```

### Format

```
{
    "level":"info",
    "timestamp":"2019-03-18T09:48:40.539Z",
    "message":"message",
    "metadata": {"any":"extra data"}
}
```

### Configuration

In each application optionally, should add a configuration property like the following.

```yml
logger:
    sentry:
        dsn:  # {String} (default: null) Sentry client key (Project -> settings -> Client Keys)
        level:  # {String} (default: error) Log level,
    console: # {Boolean} (default: true) show logs in console: false in production by default
    slack:
        token:  # {String} (default: null) Slack app token (...),
        level:  # {String} (default: crit) Log level,
        username:  # {String} (default: service name) The username of the sender,
        channel:  # {String} (default: null) Channel id,
    rotation: # If rotation is not set, will be disabled
        filename: # {String} (default: application.log) Specifies the generated filename.
        rotatedFilename: # {String} (default: {filename}-%DATE%.%INDEX%.log) Specifies the filename of the file generated by the rotation. Filename can include optionally placeholders, to take control of the name of the rotated file. available placeholders are: %DATE%:the date using the datePattern option, %INDEX%: tha index of the file.
        path: # {String} (default: null) Specifies the base path for files.
        size: # {String} (default: 20M) Specifies the file size to rotate the file. (B: Bites K: KiloBites M: MegaBytes G: GigaBytes)
        interval: # {String} (default: null) Specifies the time interval to rotate the file.(ie: '5s', '5m','2h','1d','1M')
        datePattern: # {String} (default: YYYY-MM-DD) A string representing the moment.js date format to be used for rotating.
        compress: # {Boolean} (default: true) Specifies compression method of rotated files.
        maxFiles: # {Integer} (default: null) Specifies the maximum number of rotated files to keep.
        maxSize: # {String} (default: null) Specifies the maximum size of rotated files to keep.
```

for more about rotation, check [rotating-file-stream](https://github.com/iccicci/rotating-file-stream#options-object)
npm package: @shopup/tools
Description: Common tools for node projects
Author: Mike Antoniadis
Latest version: 1.0.9

# Utils


### directoryImporter

Utils for importing all the exported modules from the specified directory

| Arguments | Type | Description |
| ------------- | ------------- | ------------- |
| folderPath | string | The full path of the directory you want to import the files |
| exclude | string[] | A list of filenames you want to be excluded from the import process. |


##### Usage

```javascript
    // index.ts
    import { directoryImporter } from '@shopup/utils';

    export default directoryImporter(__dirname,['index.ts']);

```
npm package: @shopup/utils
Description: Common utils
Author: Mike Antoniadis
Latest version: 1.0.18

# Utils


### directoryImporter

Utils for importing all the exported modules from the specified directory

| Arguments | Type | Description |
| ------------- | ------------- | ------------- |
| folderPath | string | The full path of the directory you want to import the files |
| exclude | string[] | A list of filenames you want to be excluded from the import process. |


##### Usage

```javascript
    // index.ts
    import { directoryImporter } from '@shopup/utils';

    export default directoryImporter(__dirname,['index.ts']);

```