open-index/open-npm huggingface dataset:
npm package: @reallyuseful/logger-transport-gelf
Description: A logging transport for GELF and Graylog
Author: Nate Silva
Latest version: 1.0.0-alpha.2

# @reallyuseful/logger-transport-gelf

**Logging transport for GELF/Graylog**

This is a logging transport for [@reallyuseful/logger](https://github.com/really-useful/logger).

It logs to a [GELF](http://docs.graylog.org/en/2.4/pages/gelf.html) server (the protocol used by [Graylog](https://www.graylog.org/)).

```javascript
const { Logger, ConsoleTransport } = require('@reallyuseful/logger');
const { GelfTransport } = require('@reallyuseful/logger-transport-gelf');

// log to Graylog and to the console
const gelfTransport = new GelfTransport({ appName: 'myApp' });
const consoleTransport = new ConsoleTransport();

const myLogger = new Logger([gelfTransport, consoleTransport]);
```

## Options for GelfTransport

GelfTransport can be customized with the following options:

#### Options for connecting to the GELF/Gryalog server

- **host** (string): the GELF or Graylog host (default: localhost)
- **port** (number): TCP or UDP port number (default: 12201)
- **protocol** (`udp`, `tcp`, or `tcp-tls`): whether to use UDP, TCP, or TCP with TLS encryption (default: udp)
- **ipVersion** (`4` or `6`): must be set if your GELF host is on IPv6 (default: 4)
- **tcpTimeout** (number): if using a tcp protocol, the timeout in milliseconds (default: 4000 milliseconds)
- **caCert** (string): if using tcp-tls and a self-signed certificate, the certificate of
  the CA that issued it, in PEM format

#### Options that identify your app

- **source** (string): your app’s hostname (default: os.hostname())
- **appName** (string): your app’s name, passed as the `appName` value to GELF
- **appVersion** (string): your app’s version number, passed as the `appVersion` value to
  GELF
- **env** (string): the environment (such as "development" or "production") in which your
  app is running (default: the value of the NODE_ENV environment variable)

#### Options for modifying messages to be logged

- **transform** (function): an optional function that can modify messages just before they
  are sent to GELF. Receives `(message, meta)` as input and must return an object
  `{ message, meta }` with the modified values.

#### Other options

- **minimumSeverity** (Level): if specified, messages lower than this severity will not be logged to this transport
npm package: @reallyuseful/youmail-client
Description: A Node.js client for the YouMail Spam Caller API (Unofficial)
Author: Nate Silva
Latest version: 2.4.0

# @reallyuseful/youmail-client

[![npm](https://img.shields.io/npm/v/@reallyuseful/youmail-client.svg)](https://www.npmjs.com/package/@reallyuseful/youmail-client) [![dependencies](https://img.shields.io/david/natesilva/youmail-client.svg)](https://www.npmjs.com/package/@reallyuseful/youmail-client) [![license](https://img.shields.io/github/license/natesilva/youmail-client.svg)](https://github.com/natesilva/youmail-client/blob/master/LICENSE) [![node](https://img.shields.io/node/v/@reallyuseful/youmail-client.svg)](https://www.npmjs.com/package/@reallyuseful/youmail-client)

**A Node.js interface for the YouMail Spam Caller API (Unofficial)**

Use the [YouMail Spam Caller API](https://data.youmail.com/) to determine if an incoming
phone call is likely to be a spammer.

```javascript
const { YouMailClient } = require('@reallyuseful/youmail-client');

async function main() {
  const client = new YouMailClient('your api key', 'your api sid');

  // simple lookup
  let result = await client.lookup('caller phone number');

  // advanced lookup (passing in caller ID and/or callee)
  result = await client.lookup({
    callerNumber: 'caller phone number',
    callerId: 'caller’s caller ID',
    calledNumber: 'callee phone number'
  });

  console.log(result.ok); // true if the request succeeded

  console.log(result.spamRisk);
  // 0 = not a spammer
  // 1 = possible spam
  // 2 = highly likely to be spam
  // undefined = no record found

  console.log(result.raw);
  // the full response from YouMail:
  // {
  //   "statusCode": 10000,
  //   "recordFound": true,
  //   "phoneNumber": 9991002000,
  //   "spamRisk": { "level": 1 },
  //   "timestamp": "2016-10-06T00:31:04.362Z"
  // }
}

main()
  .catch(error => console.error(error))
  .then(() => process.exit());
```
npm package: @reallyx/front-config
Description: yx1126's Front config
Author: yx1126
Latest version: 0.0.16
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @reallyx/front-config

### Install

```bash
pnpm add @reallyx/front-config -D
```

## Eslint Usage

### Config `eslint.config.mjs`

```javascript
import { defineEslint } from "@reallyx/front-config";

export default defineEslint({
    // ...configs
});
```
EslintConfig see [configs](https://github.com/yx1126/front-config/blob/main/src/eslint-config/eslint.d.ts#L43)

### Add script for package.json

For example:

```json
{
    "scripts": {
        "lint": "eslint .",
        "lint:fix": "eslint . --fix"
    }
}
```
## Stylelint Usage

### Config `stylelint.config.mjs`

```javascript
import { defineStyleLint } from "@reallyx/front-config";

export default defineStyleLint({
    // ...configs
});
```
StylelintConfig see [configs](https://github.com/yx1126/front-config/blob/main/src/stylelint-config/stylelint.d.ts#L15)

### Add script for package.json

For example:

```json
{
    "scripts": {
        "stylelint": "stylelint \"**/*.{css,scss}\"",
        "stylelint:fix": "stylelint \"**/*.{css,scss}\" --fix",
    }
}
```

### VS Code support (auto fix)

Install [VS Code ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)

Add the following settings to your `settings.json`:

```jsonc
{
    "editor.formatOnSave": true,
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": false,
    },
    // eslint
    "eslint.format.enable": true,
    "eslint.useFlatConfig": true,
    "eslint.validate": [
        "vue",
		"javascript",
		"javascriptreact",
		"typescript",
		"typescriptreact",
		"jsonc",
		"json",
		"json5",
		"yaml",
		"yml"
    ],
    // stylelint
    "stylelint.enable": true,
    "stylelint.validate": [
        "css",
        "scss",
        "sass",
        "vue"
    ],
}
```

## License

[MIT](./LICENSE) License &copy; 2023 [Ch Yang](https://github.com/yx1126)